summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/license.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index cfb816d5a4..cd18e198d4 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -237,7 +237,10 @@ def incompatible_license(d, dont_want_licenses, package=None):
237 def choose_lic_set(a, b): 237 def choose_lic_set(a, b):
238 return a if all(license_ok(lic) for lic in a) else b 238 return a if all(license_ok(lic) for lic in a) else b
239 239
240 licenses=oe.license.flattened_licenses(license, choose_lic_set) 240 try:
241 licenses = oe.license.flattened_licenses(license, choose_lic_set)
242 except oe.license.LicenseError as exc:
243 bb.fatal('%s: %s' % (d.getVar('P', True), exc))
241 return any(not license_ok(l) for l in licenses) 244 return any(not license_ok(l) for l in licenses)
242 245
243def check_license_flags(d): 246def check_license_flags(d):