[gnome-continuous-yocto/gnomeostree-3.28-rocko: 1547/8267] package_deb.bbclass: fix Python 3 error
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 1547/8267] package_deb.bbclass: fix Python 3 error
- Date: Sat, 16 Dec 2017 21:58:49 +0000 (UTC)
commit 2ab49268fd370d68401891870296fed56016fd90
Author: Matt Madison <matt@madison.systems>
Date: Wed Jul 20 05:16:36 2016 -0700
package_deb.bbclass: fix Python 3 error
Don't modify an OrderedDict while walking its keys.
(From OE-Core rev: eb7f08c4c01313afc8350200eeb63daefde8a6f6)
Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Ross Burton <ross burton intel com>
Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
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 8f9b09a..6db6933 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 "")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]