summaryrefslogtreecommitdiffstats
path: root/meta/classes-global/license.bbclass
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 10:57:35 +0100
commit1a5197760da3890cc80ac7da8d589766612d9051 (patch)
treef5023edf5423503b0b4503d2140617b9b9832440 /meta/classes-global/license.bbclass
parent912bbec9fe44f22ab70c3553af6cb699543b8411 (diff)
downloadopenembedded-core-contrib-1a5197760da3890cc80ac7da8d589766612d9051.tar.gz
license.bbclass: Include LICENSE in the output when it fails to parse
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/license.bbclass')
-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):
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()):