Fix problem with return on installed packages

This commit is contained in:
twangboy 2016-03-31 17:06:21 -06:00
parent f5bd004ab0
commit 53f6a28297

View file

@ -807,7 +807,7 @@ def version(name, check_remote=False, source=None, pre_versions=False):
ver_re = re.compile(r'(\S+)\s+(.+)')
for line in res:
if 'packages found' not in line:
if 'packages found' not in line and 'packages installed' not in line:
for name, ver in ver_re.findall(line):
ret[name] = ver