summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/cve-check.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass
index 0c92b87f52..33d41b912d 100644
--- a/meta/classes/cve-check.bbclass
+++ b/meta/classes/cve-check.bbclass
@@ -422,6 +422,11 @@ def check_cves(d, cve_data):
422 if not cves_in_recipe: 422 if not cves_in_recipe:
423 bb.note("No CVE records for products in recipe %s" % (pn)) 423 bb.note("No CVE records for products in recipe %s" % (pn))
424 424
425 if d.getVar("CVE_CHECK_SHOW_WARNINGS") == "1":
426 unpatched_cves = [cve for cve in cve_data if cve_data[cve]["abbrev-status"] == "Unpatched"]
427 if unpatched_cves:
428 bb.warn("Found unpatched CVE (%s)" % " ".join(unpatched_cves))
429
425 return (cve_data, cves_status) 430 return (cve_data, cves_status)
426 431
427def get_cve_info(d, cve_data): 432def get_cve_info(d, cve_data):