[Yum] [PATCH] Make unversioned satisfy everything in rangeCompare() also with flag=0
James Antill
james-yum at and.org
Tue Jun 23 22:27:58 UTC 2009
Ville Skyttä <ville.skytta at iki.fi> writes:
> Hello,
>
> Retrieving provides from rpmdb gives unversioned ones to me with flags=0
> (Fedora 10, rpm 4.6.1), and rangeCompare() does not do the right thing with
> them - it has a special case for None only. The attached patch fixes it for
> me.
I added the formatRequire() patch and then this one, and some more
tests ... and then realized that the formatRequire() one is bad
because if you have:
# pkgA
Require: foo >=
# pkgB
Provide: foo < 1.0-1
...then you need to know that there is a >= pkgA require, because it
fails.
--
James Antill -- james at and.org
More information about the Yum
mailing list