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:
Jeff Schroeder 2012-07-03 08:07:29 -07:00
commit ae68654ec0

View File

@ -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)]