Displaying 1 result from an estimated 1 matches for "versioncompar".
Did you mean:
versioncompare
2009 Jun 26
0
RPM python subroutine for (epoch, version, release) comparation?
...s.EVR() >= inst_ds.EVR():
print "Package file is same or newer, OK to upgrade."
else:
print "Package file is older than installed version."
--------------------------------------------------------------------------------------
?
I?ve see another function in rpm object: rpm.versionCompare(h1,h2) which compare two rpm headers, Am I supposed to use this function or the EVR as documented? The former one is not well documented, though.
?
Thanks.
?
-- Robinson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/c...