]> code.ossystems Code Review - openembedded-core.git/commitdiff
insane.bbclass: Make missing license file fatal
authorOlof Johansson <olof.johansson@axis.com>
Mon, 25 Jun 2018 11:34:45 +0000 (13:34 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 28 Jun 2018 08:22:30 +0000 (09:22 +0100)
If a license file referenced from LIC_FILES_CHKSUM doesn't exist,
insane.bbclass would output an error message, but would continue the
build. This change makes this error fatal (as I suspect has been the
intention).

Signed-off-by: Olof Johansson <olofjn@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/insane.bbclass

index bd7f51956a60529a17c249e42fc344ecbaef3f48..bdfdc315aaeb07c71065228408def768c89ba5f0 100644 (file)
@@ -612,7 +612,7 @@ python populate_lic_qa_checksum() {
             continue
         srclicfile = os.path.join(srcdir, path)
         if not os.path.isfile(srclicfile):
-            package_qa_handle_error("license-checksum", pn + ": LIC_FILES_CHKSUM points to an invalid file: " + srclicfile, d)
+            sane = package_qa_handle_error("license-checksum", pn + ": LIC_FILES_CHKSUM points to an invalid file: " + srclicfile, d)
             continue
 
         if (srclicfile == corebase_licensefile):