Skip to contentSkip to conversation

cve-check: print warning if file is missing

PATCH akuster 1 participant 1 message Jul 27, 2020 1 message not in the archive

lore
Share & tools
lore

akuster

author
#1 lore raw
In reply to a message not in the archive

ignore this one. should have been squished a local change.

-armin

Quoted 23 lines · akuster via lists.openembedded.org

If the "tmp/cve_check" file was not create as in the case for -c populate_sdk, just print a warning instead of dumping a trace back

---
 meta/classes/cve-check.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/cve-check.bbclass +1 -1
index e61c90e5600..b16da9890af 100644
@@ -56,7 +56,7 @@ python cve_save_summary_handler () {
     cve_tmp_file = d.getVar("CVE_CHECK_TMP_FILE")
 
     if not os.path.isfile(cve_tmp_file):
-        bb.warn("File Not found, check has no affect: %s" % cve_tmp_file)
+        bb.warn("File Not found: %s" % cve_tmp_file)
         return
 
     cve_summary_name = d.getVar("CVE_CHECK_SUMMARY_FILE_NAME")