mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +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
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue