diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-20 11:53:11 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-02 08:24:00 +0100 |
commit | 44e9a0d2fa759dea281fc32b602cd7878000c277 (patch) | |
tree | 69f6944e4bf34e2309ae8b3cc11eac13afcdf675 /meta/lib/oe/packagegroup.py | |
parent | 8587bce564f715e46e7317218b5c190813d3a939 (diff) | |
download | poky-44e9a0d2fa759dea281fc32b602cd7878000c277.tar.gz |
classes/lib: Update to explictly create lists where needed
Iterators now return views, not lists in python3. Where we need
lists, handle this explicitly.
(From OE-Core rev: caebd862bac7eed725e0f0321bf50793671b5312)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/packagegroup.py')
-rw-r--r-- | meta/lib/oe/packagegroup.py | 4 |
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): | |||
16 | yield pkg | 16 | yield pkg |
17 | 17 | ||
18 | def required_packages(features, d): | 18 | def required_packages(features, d): |
19 | req = filter(lambda feature: not is_optional(feature, d), features) | 19 | req = [feature for feature in features if not is_optional(feature, d)] |
20 | return packages(req, d) | 20 | return packages(req, d) |
21 | 21 | ||
22 | def optional_packages(features, d): | 22 | def optional_packages(features, d): |
23 | opt = filter(lambda feature: is_optional(feature, d), features) | 23 | opt = [feature for feature in features if is_optional(feature, d)] |
24 | return packages(opt, d) | 24 | return packages(opt, d) |
25 | 25 | ||
26 | def active_packages(features, d): | 26 | def active_packages(features, d): |