Fix py3-incompatible dict.keys()[x] call in apk.py

Fixes #48128

Previous line worked fine on Python 2.7, but on 3, emits:

`TypeError: 'dict_keys' object does not support indexing`
This commit is contained in:
Jonathan Bowman 2018-06-14 15:10:01 +00:00
parent 2da56a69d9
commit 022f9cba50

View file

@ -304,7 +304,7 @@ def install(name=None,
# 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
next(iter(p)) for p in pkgs
if isinstance(p, dict)
]
pkg_to_install.extend(pkgs)