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
@ -319,8 +319,8 @@ def _get_upgradable():
|
||||
rexp = re.compile('(?m)^Conf '
|
||||
'([^ ]+) ' # Package name
|
||||
'\(([^ ]+) ' # Version
|
||||
'([^ ]+) ' # Release
|
||||
'\[([^\]]+)\]\)$') # Arch
|
||||
'([^ ]+)' # Release
|
||||
'(?: \[([^\]]+)\])?\)$') # Arch
|
||||
keys = ['name', 'version', 'release', 'arch']
|
||||
_get = lambda l, k: l[keys.index(k)]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user