Merge pull request #5183 from sibsibsib/develop

fixed: TypeError in pkg._find_install_targets when version is None
This commit is contained in:
Thomas S Hatch 2013-05-21 22:22:41 -07:00
commit 46980febac

View File

@ -109,7 +109,7 @@ def _find_install_targets(name=None, version=None, pkgs=None, sources=None):
desired = {name: version} desired = {name: version}
cver = cur_pkgs.get(name, []) cver = cur_pkgs.get(name, [])
if version in cver: if version and version in cver:
# The package is installed and is the correct version # The package is installed and is the correct version
return {'name': name, return {'name': name,
'changes': {}, 'changes': {},