[OE-core] [PATCH] insane.bbclass: handle INSANE_SKIP for license-checksum

Awais Belal awais_belal at mentor.com
Thu Aug 18 12:37:58 UTC 2016


The function populate_lic_qa_checksum() is used to do the
QA test for license-checksum but it does not handle the
scenario where a package adds license-checksum to its
INSANE_SKIP and hence fails in such condition.
This patch adds handling of INSANE_SKIP to the
populate_lic_qa_checksum() function so it returns
cleanly in such a scenario.

Signed-off-by: Awais Belal <awais_belal at mentor.com>
---
 meta/classes/insane.bbclass | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 2cb8cc0..719ecd4 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -697,6 +697,10 @@ python populate_lic_qa_checksum() {
     if lic == "CLOSED":
         return
 
+    if 'license-checksum' in (d.getVar('INSANE_SKIP_' + pn, True) or "").split():
+        bb.note("Skipping %s for license-checksum QA test", pn)
+        return
+
     if not lic_files and d.getVar('SRC_URI', True):
         package_qa_handle_error("license-checksum", pn + ": Recipe file fetches files and does not have license file information (LIC_FILES_CHKSUM)", d)
         return
-- 
1.9.1




More information about the Openembedded-core mailing list