From: Peter Kjellerstedt Date: Thu, 27 Apr 2023 19:01:40 +0000 (+0200) Subject: license.bbclass: Include LICENSE in the output when it fails to parse X-Git-Tag: uninative-3.10~191 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a5197760da3890cc80ac7da8d589766612d9051;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git license.bbclass: Include LICENSE in the output when it fails to parse Signed-off-by: Peter Kjellerstedt Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- diff --git a/meta/classes-global/license.bbclass b/meta/classes-global/license.bbclass index 560acb8b6f1..23625f0104f 100644 --- a/meta/classes-global/license.bbclass +++ b/meta/classes-global/license.bbclass @@ -229,7 +229,7 @@ def find_license_files(d): bb.fatal('%s: %s' % (d.getVar('PF'), exc)) except SyntaxError: oe.qa.handle_error("license-syntax", - "%s: Failed to parse it's LICENSE field." % (d.getVar('PF')), d) + "%s: Failed to parse LICENSE: %s" % (d.getVar('PF'), d.getVar('LICENSE')), d) # Add files from LIC_FILES_CHKSUM to list of license files lic_chksum_paths = defaultdict(OrderedDict) for path, data in sorted(lic_chksums.items()):