rpmvercmp.py: tool compares two rpm versions
authorMichal Vyskocil <mvyskocil@suse.cz>
Mon, 21 Nov 2011 09:40:31 +0000 (10:40 +0100)
committerMichal Vyskocil <mvyskocil@suse.cz>
Mon, 21 Nov 2011 09:40:31 +0000 (10:40 +0100)
commitbf0fe0bd878e1bde255291cfe72fe409e166469b
treeebc32e5db516d78b9f990d2f4cc9c1691b05785f
parente3ac8983c90a3bbaa0b107211d23f489150f11a6
rpmvercmp.py: tool compares two rpm versions

rpmvercmp.py compares two rpm epoch:version-release strings and return
a result. The advantage is it use the versionCompare function from rpm,
so no yet another third-party reimplementation of such algorithm is
included. And an another one - it works on strings, so no rpm packages
needs to be created for purpose of this tool.
rpmvercmp.py [new file with mode: 0644]