[Yum-devel] [PATCH 2/2] fix in rangeCompare for where the item we're comparing it to has LESS than range for example: if e-1.0-0 in the range of E < 1.1

Seth Vidal skvidal at fedoraproject.org
Wed Aug 12 17:06:28 UTC 2009



On Tue, 11 Aug 2009, James Antill wrote:

> On Tue, 2009-08-11 at 16:59 -0400, Seth Vidal wrote:
>
> I'm 99% sure this should mirror the <= cases for GE/GT/etc. so where
> that is:
>
>        if reqf in ['GT', 'GE', 'EQ', 4, 12, 8]:
>            if f in ['GT', 'GE', 4, 12]:
>                return 1
>        if reqf in ['LE', 'LT', 10, 2]:
>            return 1
>
> ...I think you want:
>
>        if reqf in ['LE', 'LT', 'EQ', 10, 2, 8]:
>            if f in ['LE', 'LT', 10, 2]:
>                return 1
>        if reqf in ['GT', 'GE', 4, 12]:
>            return 1
>

fixed.
-sv



More information about the Yum-devel mailing list