mirror of
https://git.yoctoproject.org/poky
synced 2026-09-16 09:49:35 +02:00
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>
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user