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

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