[oe-commits] Chris Larson : oe.packagegroup: fix python version compat issue
git version control
git at git.openembedded.org
Sun Oct 10 15:42:29 UTC 2010
Module: openembedded.git
Branch: master
Commit: 31afd66b9a6d2dab545f28c90d4632b34911d36a
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=31afd66b9a6d2dab545f28c90d4632b34911d36a
Author: Chris Larson <chris_larson at mentor.com>
Date: Sun Oct 10 08:40:17 2010 -0700
oe.packagegroup: fix python version compat issue
Signed-off-by: Chris Larson <chris_larson at mentor.com>
---
lib/oe/packagegroup.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/oe/packagegroup.py b/lib/oe/packagegroup.py
index 7371fa7..b04c45a 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)
More information about the Openembedded-commits
mailing list