[fix] pkg.installed call on pkg.install (#36904)

This commit is contained in:
Steeve 2016-10-11 16:55:53 +02:00 committed by Nicole Thomas
parent 6c441cb288
commit 6654444fea

View File

@ -301,6 +301,12 @@ def install(name=None,
pkg_to_install = [name]
if pkgs:
# We don't support installing specific version for now
# so transform the dict in list ignoring version provided
pkgs = [
p.keys()[0] for p in pkgs
if isinstance(p, dict)
]
pkg_to_install.extend(pkgs)
if not pkg_to_install: