summaryrefslogtreecommitdiffstats
path: root/meta/classes/insane.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/insane.bbclass')
-rw-r--r--meta/classes/insane.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 3906ba797e..aa304f108e 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -589,7 +589,7 @@ python populate_lic_qa_checksum() {
589 sane = package_qa_handle_error("license-checksum", pn + ": Recipe file fetches files and does not have license file information (LIC_FILES_CHKSUM)", d) 589 sane = package_qa_handle_error("license-checksum", pn + ": Recipe file fetches files and does not have license file information (LIC_FILES_CHKSUM)", d)
590 590
591 srcdir = d.getVar('S') 591 srcdir = d.getVar('S')
592 592 corebase_licensefile = d.getVar('COREBASE') + "/LICENSE"
593 for url in lic_files.split(): 593 for url in lic_files.split():
594 try: 594 try:
595 (type, host, path, user, pswd, parm) = bb.fetch.decodeurl(url) 595 (type, host, path, user, pswd, parm) = bb.fetch.decodeurl(url)
@@ -601,6 +601,9 @@ python populate_lic_qa_checksum() {
601 package_qa_handle_error("license-checksum", pn + ": LIC_FILES_CHKSUM points to an invalid file: " + srclicfile, d) 601 package_qa_handle_error("license-checksum", pn + ": LIC_FILES_CHKSUM points to an invalid file: " + srclicfile, d)
602 continue 602 continue
603 603
604 if (srclicfile == corebase_licensefile):
605 bb.warn("${COREBASE}/LICENSE is not a valid license file, please use '${COMMON_LICENSE_DIR}/MIT' for a MIT License file in LIC_FILES_CHKSUM. This will become an error in the future")
606
604 recipemd5 = parm.get('md5', '') 607 recipemd5 = parm.get('md5', '')
605 beginline, endline = 0, 0 608 beginline, endline = 0, 0
606 if 'beginline' in parm: 609 if 'beginline' in parm: