[oe-commits] Peter Seebach : base.bbclass: Work even when there's no PNBLACKLIST entries
git at git.openembedded.org
git at git.openembedded.org
Fri Aug 17 10:38:12 UTC 2012
Module: openembedded-core.git
Branch: master
Commit: 491df239170dd20f3e91df6bc1ead2945a78e075
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=491df239170dd20f3e91df6bc1ead2945a78e075
Author: Peter Seebach <peter.seebach at windriver.com>
Date: Thu Aug 16 11:50:45 2012 -0500
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 <peter.seebach at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/classes/base.bbclass | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 840ddbc..acc3217 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)
More information about the Openembedded-commits
mailing list