Merge pull request #32302 from terminalmage/fix-missing-release

Properly support packages with blank "Release" param in pkg.latest_version
This commit is contained in:
Nicole Thomas 2016-04-01 16:13:27 -06:00
commit 0a6d44e57b

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