http://bugzilla.novell.com/show_bug.cgi?id=551956
User jreidinger@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=551956#c8
--- Comment #8 from Josef Reidinger 2009-11-06 07:07:02 MST ---
Hi, few notes:
planned zypper behavior is that if you want remove lock from package e.g.
libzypp, you expect that after zypper rl libzypp is libzypp no longer locked.
For this reason I check which locks lock libzypp, If that lock looks like
zypper (which locks only one package) or automatic lock from Pool (so via
libzypp added lock), then it is removed. But if this lock locks more packages,
then it should ask user.
so for example:
zypper al *zypp
zypper al lib*
zypper rl libzypp # informs user that there is two locks which locks more then
just libzypp
Reason why I add same result of Pool query instead of syntactic equal, is
updates. If we change syntactic of query, then zypper cannot remove locks which
add old zypper.
I understand problem in third paragraph. Reason is that I don't know that
setHardLockQueries is implemented when I implement this part. So feel free to
improve it. Just don't forget to support all options in locks file as some user
use it quite often (like lock whole i586 and use pure x86_64 system via arch
lock).
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.