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/classes/license.bbclass | |
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/classes/license.bbclass')
-rw-r--r-- | meta/classes/license.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass index 538ab1976e..10d6ed853a 100644 --- a/meta/classes/license.bbclass +++ b/meta/classes/license.bbclass | |||
@@ -635,7 +635,7 @@ def check_license_format(d): | |||
635 | licenses = d.getVar('LICENSE', True) | 635 | licenses = d.getVar('LICENSE', True) |
636 | from oe.license import license_operator, license_operator_chars, license_pattern | 636 | from oe.license import license_operator, license_operator_chars, license_pattern |
637 | 637 | ||
638 | elements = filter(lambda x: x.strip(), license_operator.split(licenses)) | 638 | elements = list(filter(lambda x: x.strip(), license_operator.split(licenses))) |
639 | for pos, element in enumerate(elements): | 639 | for pos, element in enumerate(elements): |
640 | if license_pattern.match(element): | 640 | if license_pattern.match(element): |
641 | if pos > 0 and license_pattern.match(elements[pos - 1]): | 641 | if pos > 0 and license_pattern.match(elements[pos - 1]): |