summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorPeter Marko <peter.marko@siemens.com>2024-11-24 21:13:41 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-28 12:27:12 +0000
commit275aec49b68553926a5ec24e41653e30ff4d2619 (patch)
tree48103850504340aef9cbbee3526c07f7d711348d /meta/classes
parente48539a2f8e686878694ad8b7471132b1f94e000 (diff)
downloadpoky-275aec49b68553926a5ec24e41653e30ff4d2619.tar.gz
cve-check: restore CVE_CHECK_SHOW_WARNINGS functionality
Commit 05ef4f2a7b225c8d230eaca8d333ffb921729d79 removed this functionality by accident. It was implemented in text exporter, while it should have been a global feature independent on exporter type to avoid such accidental deletion. (From OE-Core rev: 2996b11596afca288a6b7f409a5287063d331f3b) Signed-off-by: Peter Marko <peter.marko@siemens.com> Cc: Marta Rybczynska <marta.rybczynska@ygreky.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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):