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:

> Hmm, I don't understand, could you elaborate/rephrase?
>
> "foo >=" without a version doesn't make sense to me, for example rpmbuild 
> doesn't let "Requires: foo >=" pass.  Is it actually possible to have such 
> relations that have name, the = >= and friends bits, but no version in 
> packages?

 If it's not possible to do, then surely having bad output for those
impossible cases isn't a problem?:) In reality there is more than just
the current version of rpmbuild.

> In the commit message where the patch was reverted, it says "This isn't right 
> ... Eg. =>, (None, None, None) VS. < (1, 2, 3) is false.".  Isn't 
> formatRequire() just for formatting stuff for humans to read, what does it 
> have to do with actual version comparisons?

 Yes, it's just for output ... but if a package refuses to install and
the output says "dependency not found 'foo'", and we look and
something is providing 'foo < 1' and we are requiring 'foo' that will
be very confusing ... whereas if the output says "dependency not found
'foo >='" we'll know that something is weird (and why the dep. failed).

-- 
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.