mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00: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:
@@ -635,7 +635,7 @@ def check_license_format(d):
|
||||
licenses = d.getVar('LICENSE', True)
|
||||
from oe.license import license_operator, license_operator_chars, license_pattern
|
||||
|
||||
elements = filter(lambda x: x.strip(), license_operator.split(licenses))
|
||||
elements = list(filter(lambda x: x.strip(), license_operator.split(licenses)))
|
||||
for pos, element in enumerate(elements):
|
||||
if license_pattern.match(element):
|
||||
if pos > 0 and license_pattern.match(elements[pos - 1]):
|
||||
|
||||
Reference in New Issue
Block a user