aboutsummaryrefslogtreecommitdiffstats
path: root/lib/oe
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-10-10 08:40:17 -0700
committerChris Larson <chris_larson@mentor.com>2010-10-10 08:40:17 -0700
commit31afd66b9a6d2dab545f28c90d4632b34911d36a (patch)
tree31be6395d3df6fca3e72f38dba3dc2285730b2ce /lib/oe
parenta20337cda17273261c9c9a8d9fd00bab94e5927a (diff)
downloadopenembedded-31afd66b9a6d2dab545f28c90d4632b34911d36a.tar.gz
oe.packagegroup: fix python version compat issue
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/oe')
-rw-r--r--lib/oe/packagegroup.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/oe/packagegroup.py b/lib/oe/packagegroup.py
index 7371fa72ce..b04c45a1af 100644
--- a/lib/oe/packagegroup.py
+++ b/lib/oe/packagegroup.py
@@ -4,8 +4,9 @@ def is_optional(group, d):
return bool(d.getVarFlag("PACKAGE_GROUP_%s" % group, "optional"))
def packages(groups, d):
- return itertools.chain.from_iterable(d.getVar("PACKAGE_GROUP_%s" % group, True).split()
- for group in groups)
+ for group in groups:
+ for pkg in (d.getVar("PACKAGE_GROUP_%s" % group, True) or "").split():
+ yield pkg
def required_packages(groups, d):
req = filter(lambda group: not is_optional(group, d), groups)