rpm.labelCompare and "raw" epochs?

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

 



Hi,

Can't the first element in the tuples that I pass to the Python
rpm.labelCompare() funtion be just hdr[rpm.RPMTAG_EPOCH]?

Jeff's <http://www.redhat.com/archives/rpm-list/2003-July/msg00216.html>
example suggests that this is possible, but it seems to produce a
TypeError with a package where epoch is "0":

   TypeError: argument 1, item 0 must be string or None, not int.

If this is true, can I then just use "str(hdr[rpm.RPMTAG_EPOCH])" or will
this fail because this yields the *string* "None" for unset epoch values?

Suggestions?

--
--    Jos Vos <jos@xxxxxx>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204


[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux