mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
base.bbclass: Work even when there's no PNBLACKLIST entries
It turns out that the result of getVarFlags is not a list, it's a dict. So "getVarFlags(...) or []" does not reliably produce something with a .items. This escaped detection because our local build environment never ends up running builds without PNBLACKLIST entries. (From OE-Core rev: 491df239170dd20f3e91df6bc1ead2945a78e075) Signed-off-by: Peter Seebach <peter.seebach@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
af847d3637
commit
e2f73517ae
@@ -175,7 +175,7 @@ def preferred_ml_updates(d):
|
|||||||
|
|
||||||
versions = []
|
versions = []
|
||||||
providers = []
|
providers = []
|
||||||
blacklists = d.getVarFlags('PNBLACKLIST') or []
|
blacklists = d.getVarFlags('PNBLACKLIST') or {}
|
||||||
for v in d.keys():
|
for v in d.keys():
|
||||||
if v.startswith("PREFERRED_VERSION_"):
|
if v.startswith("PREFERRED_VERSION_"):
|
||||||
versions.append(v)
|
versions.append(v)
|
||||||
|
|||||||
Reference in New Issue
Block a user