mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
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:
commit
0a6d44e57b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user