summaryrefslogtreecommitdiffstats
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
authorPeter Seebach <peter.seebach@windriver.com>2012-08-16 11:50:45 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-17 11:33:20 +0100
commite2f73517ae02b64827f50fc2d93eb5a30888bba8 (patch)
tree9b97aac6e9e7fc55bc5fb00b7e757682549f8b12 /meta/classes/base.bbclass
parentaf847d36375aa53f0c1ee2a00c97ba9f38837d1b (diff)
downloadpoky-e2f73517ae02b64827f50fc2d93eb5a30888bba8.tar.gz
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>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r--meta/classes/base.bbclass2
1 files changed, 1 insertions, 1 deletions
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):
175 175
176 versions = [] 176 versions = []
177 providers = [] 177 providers = []
178 blacklists = d.getVarFlags('PNBLACKLIST') or [] 178 blacklists = d.getVarFlags('PNBLACKLIST') or {}
179 for v in d.keys(): 179 for v in d.keys():
180 if v.startswith("PREFERRED_VERSION_"): 180 if v.startswith("PREFERRED_VERSION_"):
181 versions.append(v) 181 versions.append(v)