[Yum-devel] Fix bug in erase behaviour

Gijs Hollestelle gijs at gewis.nl
Wed Apr 25 18:13:54 UTC 2007


I noticed a bug in the remove behaviour:
yum is happy to remove kmod-nvidia-96xx while leaving
xorg-x11-drv-nvidia-96xx which depends on nvidia-96xx-kmod >=
1.0.9631.

It turns out the code responsible for this is inPrcoRange in
packages.py which contains the following code:
                if f != 'EQ':
                    # isn't this odd, it's not 'EQ' - it really should be

The fact that flags != 'EQ' is odd only holds for provides not for the
other prco's.
So I added an extra constraint here:
                if f != 'EQ' and prcotype == 'provides':

Now you correctly removes xorg-x11-drv-nvidia-96xx as well in the test case.

Greets,
  Gijs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: prco-fix.patch
Type: text/x-patch
Size: 834 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20070425/da94f266/attachment.bin 


More information about the Yum-devel mailing list