Re: [PATCH] Make unversioned satisfy everything in rangeCompare() also with flag=0

James Antill <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
Ville Skyttä <[email protected]> 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 -- [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.