mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +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
|
'([^ ]+) ' # Package name
|
||||||
'\(([^ ]+) ' # Version
|
'\(([^ ]+) ' # Version
|
||||||
'([^ ]+)' # Release
|
'([^ ]+)' # Release
|
||||||
'\[([^\]]+)\]\)$') # Arch
|
'(?: \[([^\]]+)\])?\)$') # Arch
|
||||||
keys = ['name', 'version', 'release', 'arch']
|
keys = ['name', 'version', 'release', 'arch']
|
||||||
_get = lambda l, k: l[keys.index(k)]
|
_get = lambda l, k: l[keys.index(k)]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user