From cd2c9acdbd75c83790e8144d2a834f5b5de35df0 Mon Sep 17 00:00:00 2001 From: Aníbal Limón Date: Thu, 30 Jul 2015 16:40:12 -0500 Subject: license_class: Fix choose_lic_set into incompatible license MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Richard Purdie --- meta/classes/license.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meta') diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass index b62910bf26..9a8066cdbb 100644 --- a/meta/classes/license.bbclass +++ b/meta/classes/license.bbclass @@ -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) -- cgit v1.2.3-54-g00ecf