Bug 396518

Summary: libzypp/zypper does not create /etc/zypp/locks if needed
Product: [openSUSE] openSUSE 11.0 Reporter: Pavol Rusnak <prusnak>
Component: libzyppAssignee: Josef Reidinger <jreidinger>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: casualprogrammer, dmueller, jreidinger
Version: Factory   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Pavol Rusnak 2008-06-02 20:13:29 UTC
I upgrade my distro regularly with 'zypper dup' command. Somehow the file /etc/zypp/locks is not present in my setting. When I try to lock some package it fails. After I touch this file it is OK.

(alias z='sudo zypper -v')

[stick@spectra ~] z addlock opera
Verbosity: 1
Non-option program arguments: 'opera'
Initializing Target
Reading installed packages...
Problem adding the package lock:
Cannot open file /etc/zypp/locks
[stick@spectra ~] ll /etc/zypp/locks
ls: cannot access /etc/zypp/locks: No such file or directory
[stick@spectra ~] sudo touch /etc/zypp/locks
[stick@spectra ~] z addlock opera
Verbosity: 1
Non-option program arguments: 'opera'
Initializing Target
Reading installed packages...
Specified lock has been successfully added.
Comment 1 Josef Reidinger 2008-06-03 06:03:14 UTC
fixed in svn
Comment 2 Josef Reidinger 2008-06-05 07:56:17 UTC
*** Bug 397318 has been marked as a duplicate of this bug. ***
Comment 3 Josef Reidinger 2008-06-10 12:41:08 UTC
*** Bug 398835 has been marked as a duplicate of this bug. ***
Comment 4 Josef Reidinger 2008-07-17 06:30:48 UTC
fixed in release 0.12.0