Skip to contentSkip to conversation

license.bbclass: Include LICENSE in the output when it fails to parse

PATCH New Peter Kjellerstedt 1 participant 1 message Apr 27, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 license.bbclass: Include LICENSE in the output when it fails to parse

---
 meta/classes-global/license.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes-global/license.bbclass +1 -1
index 560acb8b6f..23625f0104 100644
@@ -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()):