mirror of
https://git.yoctoproject.org/poky
synced 2026-04-04 23:02:22 +02:00
license_class: Fix choose_lic_set into incompatible license
Use canonical_license when doing evaluation of license expresion since INCOMPATIBLE_LICENSE are already canonized. [YOCTO #8080] (From OE-Core rev: 64a4faf66f6d28acf575307079c1843a70efb71c) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
08f9fbbc97
commit
cd2c9acdbd
@@ -359,7 +359,8 @@ def incompatible_license(d, dont_want_licenses, package=None):
|
||||
# Handles an "or" or two license sets provided by
|
||||
# flattened_licenses(), pick one that works if possible.
|
||||
def choose_lic_set(a, b):
|
||||
return a if all(license_ok(lic) for lic in a) else b
|
||||
return a if all(license_ok(canonical_license(d, lic)) for lic in a) \
|
||||
else b
|
||||
|
||||
try:
|
||||
licenses = oe.license.flattened_licenses(license, choose_lic_set)
|
||||
|
||||
Reference in New Issue
Block a user