Properly support packages with blank "Release" param in pkg.latest_version

This commit is contained in:
Erik Johnson 2016-04-01 15:49:20 -05:00
parent 5d08db7c92
commit 413c371ccd

View file

@ -240,7 +240,10 @@ def _yum_pkginfo(output):
cur['arch'],
osarch)
else:
if key == 'repoid':
if key == 'version':
# Suppport packages with no 'Release' parameter
value = value.rstrip('-')
elif key == 'repoid':
# Installed packages show a '@' at the beginning
value = value.lstrip('@')
cur[key] = value