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>
This commit is contained in:
parent
0e63414bc3
commit
2ab49268fd
|
@ -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 "")
|
||||
|
|
Loading…
Reference in New Issue