From eb7f08c4c01313afc8350200eeb63daefde8a6f6 Mon Sep 17 00:00:00 2001 From: Matt Madison Date: Wed, 20 Jul 2016 05:16:36 -0700 Subject: package_deb.bbclass: fix Python 3 error Don't modify an OrderedDict while walking its keys. Signed-off-by: Matt Madison Signed-off-by: Ross Burton --- meta/classes/package_deb.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass index 8f9b09a780..6db69332e2 100644 --- a/meta/classes/package_deb.bbclass +++ b/meta/classes/package_deb.bbclass @@ -232,7 +232,7 @@ python do_package_deb () { rdepends = bb.utils.explode_dep_versions2(localdata.getVar("RDEPENDS", True) or "") debian_cmp_remap(rdepends) - for dep in rdepends.keys(): + for dep in list(rdepends.keys()): if dep == pkg: del rdepends[dep] continue @@ -240,7 +240,7 @@ python do_package_deb () { del rdepends[dep] rrecommends = bb.utils.explode_dep_versions2(localdata.getVar("RRECOMMENDS", True) or "") debian_cmp_remap(rrecommends) - for dep in rrecommends.keys(): + for dep in list(rrecommends.keys()): if '*' in dep: del rrecommends[dep] rsuggests = bb.utils.explode_dep_versions2(localdata.getVar("RSUGGESTS", True) or "") -- cgit v1.2.3