diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-20 11:53:11 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-02 08:24:00 +0100 |
commit | 44e9a0d2fa759dea281fc32b602cd7878000c277 (patch) | |
tree | 69f6944e4bf34e2309ae8b3cc11eac13afcdf675 /meta/lib/oe/rootfs.py | |
parent | 8587bce564f715e46e7317218b5c190813d3a939 (diff) | |
download | poky-44e9a0d2fa759dea281fc32b602cd7878000c277.tar.gz |
classes/lib: Update to explictly create lists where needed
Iterators now return views, not lists in python3. Where we need
lists, handle this explicitly.
(From OE-Core rev: caebd862bac7eed725e0f0321bf50793671b5312)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/rootfs.py')
-rw-r--r-- | meta/lib/oe/rootfs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py index 7087b12f25..d93485819a 100644 --- a/meta/lib/oe/rootfs.py +++ b/meta/lib/oe/rootfs.py | |||
@@ -536,7 +536,7 @@ class DpkgOpkgRootfs(Rootfs): | |||
536 | pkg_depends = m_depends.group(1) | 536 | pkg_depends = m_depends.group(1) |
537 | 537 | ||
538 | # remove package dependencies not in postinsts | 538 | # remove package dependencies not in postinsts |
539 | pkg_names = pkgs.keys() | 539 | pkg_names = list(pkgs.keys()) |
540 | for pkg_name in pkg_names: | 540 | for pkg_name in pkg_names: |
541 | deps = pkgs[pkg_name][:] | 541 | deps = pkgs[pkg_name][:] |
542 | 542 | ||
@@ -569,7 +569,7 @@ class DpkgOpkgRootfs(Rootfs): | |||
569 | pkgs = self._get_pkgs_postinsts(status_file) | 569 | pkgs = self._get_pkgs_postinsts(status_file) |
570 | if pkgs: | 570 | if pkgs: |
571 | root = "__packagegroup_postinst__" | 571 | root = "__packagegroup_postinst__" |
572 | pkgs[root] = pkgs.keys() | 572 | pkgs[root] = list(pkgs.keys()) |
573 | _dep_resolve(pkgs, root, pkg_list, []) | 573 | _dep_resolve(pkgs, root, pkg_list, []) |
574 | pkg_list.remove(root) | 574 | pkg_list.remove(root) |
575 | 575 | ||