diff options
author | Matt Madison <matt@madison.systems> | 2016-07-20 05:16:36 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-25 23:46:58 +0100 |
commit | eb7f08c4c01313afc8350200eeb63daefde8a6f6 (patch) | |
tree | 857d38f903f7610b5a4650d9ffdad02557076f00 | |
parent | 913149f269679bda87badb94e1de66646fdc5362 (diff) | |
download | openembedded-core-eb7f08c4c01313afc8350200eeb63daefde8a6f6.tar.gz openembedded-core-eb7f08c4c01313afc8350200eeb63daefde8a6f6.tar.bz2 openembedded-core-eb7f08c4c01313afc8350200eeb63daefde8a6f6.zip |
package_deb.bbclass: fix Python 3 error
Don't modify an OrderedDict while walking its keys.
Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r-- | meta/classes/package_deb.bbclass | 4 |
1 files 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 "") |