summaryrefslogtreecommitdiff
path: root/meta/lib/oe/packagegroup.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-20 11:53:11 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-02 08:10:02 +0100
commitcaebd862bac7eed725e0f0321bf50793671b5312 (patch)
tree2da96b5da7b9b0e0ef04c03cf74f14ddfd180f30 /meta/lib/oe/packagegroup.py
parent2476bdcbef591e951d11d57d53f1315848758571 (diff)
downloadopenembedded-core-caebd862bac7eed725e0f0321bf50793671b5312.tar.gz
openembedded-core-caebd862bac7eed725e0f0321bf50793671b5312.tar.bz2
openembedded-core-caebd862bac7eed725e0f0321bf50793671b5312.zip
classes/lib: Update to explictly create lists where needed
Iterators now return views, not lists in python3. Where we need lists, handle this explicitly. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/packagegroup.py')
-rw-r--r--meta/lib/oe/packagegroup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oe/packagegroup.py b/meta/lib/oe/packagegroup.py
index a6fee5f950..97819279b7 100644
--- a/meta/lib/oe/packagegroup.py
+++ b/meta/lib/oe/packagegroup.py
@@ -16,11 +16,11 @@ def packages(features, d):
yield pkg
def required_packages(features, d):
- req = filter(lambda feature: not is_optional(feature, d), features)
+ req = [feature for feature in features if not is_optional(feature, d)]
return packages(req, d)
def optional_packages(features, d):
- opt = filter(lambda feature: is_optional(feature, d), features)
+ opt = [feature for feature in features if is_optional(feature, d)]
return packages(opt, d)
def active_packages(features, d):