mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #1569 from fabulops/issue-1568
[Issue 1568] Updated the regex to match when there is no [arch] field.
This commit is contained in:
commit
ae68654ec0
@ -320,7 +320,7 @@ def _get_upgradable():
|
||||
'([^ ]+) ' # Package name
|
||||
'\(([^ ]+) ' # Version
|
||||
'([^ ]+)' # Release
|
||||
'\[([^\]]+)\]\)$') # Arch
|
||||
'(?: \[([^\]]+)\])?\)$') # Arch
|
||||
keys = ['name', 'version', 'release', 'arch']
|
||||
_get = lambda l, k: l[keys.index(k)]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user