summaryrefslogtreecommitdiffstats
path: root/meta/classes/copyleft_compliance.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/copyleft_compliance.bbclass')
-rw-r--r--meta/classes/copyleft_compliance.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/copyleft_compliance.bbclass b/meta/classes/copyleft_compliance.bbclass
index 5d9ab11926..2fe524b5f3 100644
--- a/meta/classes/copyleft_compliance.bbclass
+++ b/meta/classes/copyleft_compliance.bbclass
@@ -48,6 +48,8 @@ def copyleft_should_include(d):
48 licenses = oe.license.flattened_licenses(d.getVar('LICENSE', True), choose_licenses) 48 licenses = oe.license.flattened_licenses(d.getVar('LICENSE', True), choose_licenses)
49 except oe.license.InvalidLicense as exc: 49 except oe.license.InvalidLicense as exc:
50 bb.fatal('%s: %s' % (d.getVar('PF', True), exc)) 50 bb.fatal('%s: %s' % (d.getVar('PF', True), exc))
51 except SyntaxError:
52 bb.warn("%s: Failed to parse it's LICENSE field." % (d.getVar('PF', True)))
51 53
52 return all(include_license(lic) for lic in licenses) 54 return all(include_license(lic) for lic in licenses)
53 55