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

Re: Fedora Tracker: Part Deux



> 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




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