From: Peter Seebach Date: Thu, 16 Aug 2012 16:50:45 +0000 (-0500) Subject: base.bbclass: Work even when there's no PNBLACKLIST entries X-Git-Tag: 2015-4~9539 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=491df239170dd20f3e91df6bc1ead2945a78e075;p=openembedded-core.git 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. Signed-off-by: Peter Seebach Signed-off-by: Richard Purdie --- diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 840ddbcc93..acc3217b39 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -175,7 +175,7 @@ def preferred_ml_updates(d): versions = [] providers = [] - blacklists = d.getVarFlags('PNBLACKLIST') or [] + blacklists = d.getVarFlags('PNBLACKLIST') or {} for v in d.keys(): if v.startswith("PREFERRED_VERSION_"): versions.append(v)