Fedora Tracker: Part Deux

seth vidal skvidal at phy.duke.edu
Tue Mar 30 01:43:57 UTC 2004


> Won't quite work -- the alphabetical ordering of versions isn't
> necessarily correct wrt rpm's versioning.  rpmvercmp is a bit more
> complicated, unfortunately.

import rpm
                         
rc = rpm.labelCompare((e1, v1, r1), (e2, v2, r2))
rc = 1: the first set is newer than the second set
rc = 0: they are the same version
rc = -1: the second set is newer than the first set

-sv






More information about the fedora-devel-list mailing list