Hi Gijs:

Gijs Hollestelle wrote:
> 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.

inPrcoRange is covered by some test cases in test/packagetests.py. Would
you mind adding a test case/test cases for this bug?

-James "unit tests will solve all our problems Bowes

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Yum-devel mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel

Reply via email to