Jump to letter: [
ABCDEFGHIJKLMNOPQRSTUVWXYZ
]
python2-rpmUtils - python rpmUtils
Website: |
none |
License: |
GPLv2+ |
Vendor: |
Koozali.org <http://www.koozali.org> |
- Description:
taken from yum with slightly adaptions in Makefile
Needed for eg. repoview, or for checking rpm-versions (taken from
https://stackoverflow.com/questions/3206319/how-do-i-compare-rpm-versions-in-python):
import rpmUtils.miscutils
>>> rpmUtils.miscutils.compareEVR(("foo", "3.7.4", "1"), ("foo", "3.7.4", "1"))
0
>>> rpmUtils.miscutils.compareEVR(("foo", "3.7.4", "1"), ("foo", "3.7.4a", "1"))
-1
>>> rpmUtils.miscutils.compareEVR(("foo", "3.7.4a", "1"), ("foo", "3.7.4", "1"))
1
Packages