oe.packagegroup: fix python version compat issue
authorChris Larson <chris_larson@mentor.com>
Sun, 10 Oct 2010 15:40:17 +0000 (08:40 -0700)
committerChris Larson <chris_larson@mentor.com>
Sun, 10 Oct 2010 15:40:17 +0000 (08:40 -0700)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
lib/oe/packagegroup.py

index 7371fa7..b04c45a 100644 (file)
@@ -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)