diff options
author | Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> | 2016-03-10 14:47:08 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-12 22:11:21 +0000 |
commit | 04aa40be126e00e2eb97311510e4d3ea90bfe7eb (patch) | |
tree | c94049a06a2b71040d53cc94c1b9e0b99391a2ac /meta | |
parent | 06835e109264b0472f4a47e33a74b0c872ebd7f1 (diff) | |
download | openembedded-core-04aa40be126e00e2eb97311510e4d3ea90bfe7eb.tar.gz openembedded-core-04aa40be126e00e2eb97311510e4d3ea90bfe7eb.tar.bz2 openembedded-core-04aa40be126e00e2eb97311510e4d3ea90bfe7eb.zip |
package_deb: Fix python runtime error
The dictionary cannot be used for iteration if its size may change
during the loop.
ERROR: Error executing a python function in
/home/ricardo/curro/qt5022/build-qt5022/repo/yocto/meta/recipes-devtools/perl/perl_5.22.0.bb:
Exception: RuntimeError: dictionary changed size during iteration
Acked-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta')
-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 b3cf07a25b..6ecea0e182 100644 --- a/meta/classes/package_deb.bbclass +++ b/meta/classes/package_deb.bbclass @@ -234,12 +234,12 @@ python do_package_deb () { rdepends = bb.utils.explode_dep_versions2(localdata.getVar("RDEPENDS", True) or "") debian_cmp_remap(rdepends) - for dep in rdepends: + for dep in rdepends.keys(): if '*' in dep: del rdepends[dep] rrecommends = bb.utils.explode_dep_versions2(localdata.getVar("RRECOMMENDS", True) or "") debian_cmp_remap(rrecommends) - for dep in rrecommends: + for dep in rrecommends.keys(): if '*' in dep: del rrecommends[dep] rsuggests = bb.utils.explode_dep_versions2(localdata.getVar("RSUGGESTS", True) or "") |