RPM naming question.

Todd Zullinger tmz at pobox.com
Thu Jul 12 19:09:00 UTC 2007


Rick Stevens wrote:
> To humans, yes, but the "L" parses later than the corresponding ".":
> 
> 	           |
> 	           v
> 	foo-0.6.5-7.fc7.rpm
> 	foo-0.6.5-7L.fc7.rpm
> 	           ^
> 	           |
> 
> I suspect the script is doing a character-by-character comparison, so
> the shorter string has precedence and the "." is earlier in the ASCII
> sequence than the "L" as well.

The fedora-rpmvercmp script uses the python interface to rpm and calls
the labelCompare function to do the comparison.  So the rules used are
what rpm uses.  I find it's best not to think to hard about the odd
ways that rpm tries to deal with versioning. ;)

The point is that it's a good tool to use in a situation like Aaron
had where he needed to know whether the EVR (epoch, version, release)
he was planning to use would evaluate as newer by rpm.

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Would you let the aliens land, please?  They might be here to pick me
up.
    -- Bill Hicks

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 542 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070712/4fc8af74/attachment-0001.sig>


More information about the fedora-list mailing list