Re: RPM naming question.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2007-07-12 at 15:09 -0400, Todd Zullinger wrote:
> 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. ;)

I'm sort of afraid to even look at that code. ;-p  Python gives me a
headache!

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

Yup.

----------------------------------------------------------------------
- Rick Stevens, Principal Engineer             rstevens@xxxxxxxxxxxx -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-    "Hello. My PID is Inigo Montoya.  You `kill -9'-ed my parent    -
-                     process.  Prepare to vi."                      -
----------------------------------------------------------------------

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux