]> code.ossystems Code Review - openembedded-core.git/commitdiff
license_class: Fix choose_lic_set into incompatible license
authorAníbal Limón <anibal.limon@linux.intel.com>
Thu, 30 Jul 2015 21:40:12 +0000 (16:40 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 14 Aug 2015 01:54:15 +0000 (18:54 -0700)
Use canonical_license when doing evaluation of license expresion
since INCOMPATIBLE_LICENSE are already canonized.

[YOCTO #8080]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/license.bbclass

index b62910bf264b863f4a085d9e7046e9aa3bc16cb9..9a8066cdbbbc3825ebdd6e89b889e6b51f30f80e 100644 (file)
@@ -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)