summaryrefslogtreecommitdiffstats
path: root/meta/classes-global
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2023-04-27 21:01:40 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-05-05 11:07:26 +0100
commit9ed46595f8bf16bbf59389240dfc25074122d78b (patch)
tree583a18819fb8a2f7ceefd824ba9e5dc53ae94436 /meta/classes-global
parente7e7999b2390f26e0cc6cd4e0fbfd43bcd270862 (diff)
downloadpoky-9ed46595f8bf16bbf59389240dfc25074122d78b.tar.gz
license.bbclass: Include LICENSE in the output when it fails to parse
(From OE-Core rev: 1a5197760da3890cc80ac7da8d589766612d9051) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-global')
-rw-r--r--meta/classes-global/license.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-global/license.bbclass b/meta/classes-global/license.bbclass
index 560acb8b6f..23625f0104 100644
--- a/meta/classes-global/license.bbclass
+++ b/meta/classes-global/license.bbclass
@@ -229,7 +229,7 @@ def find_license_files(d):
229 bb.fatal('%s: %s' % (d.getVar('PF'), exc)) 229 bb.fatal('%s: %s' % (d.getVar('PF'), exc))
230 except SyntaxError: 230 except SyntaxError:
231 oe.qa.handle_error("license-syntax", 231 oe.qa.handle_error("license-syntax",
232 "%s: Failed to parse it's LICENSE field." % (d.getVar('PF')), d) 232 "%s: Failed to parse LICENSE: %s" % (d.getVar('PF'), d.getVar('LICENSE')), d)
233 # Add files from LIC_FILES_CHKSUM to list of license files 233 # Add files from LIC_FILES_CHKSUM to list of license files
234 lic_chksum_paths = defaultdict(OrderedDict) 234 lic_chksum_paths = defaultdict(OrderedDict)
235 for path, data in sorted(lic_chksums.items()): 235 for path, data in sorted(lic_chksums.items()):