diff options
Diffstat (limited to 'meta/classes/cve-check.bbclass')
-rw-r--r-- | meta/classes/cve-check.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass index 3bb924ba34..c80a365819 100644 --- a/meta/classes/cve-check.bbclass +++ b/meta/classes/cve-check.bbclass | |||
@@ -48,6 +48,7 @@ CVE_CHECK_COPY_FILES ??= "1" | |||
48 | CVE_CHECK_CREATE_MANIFEST ??= "1" | 48 | CVE_CHECK_CREATE_MANIFEST ??= "1" |
49 | 49 | ||
50 | CVE_CHECK_REPORT_PATCHED ??= "1" | 50 | CVE_CHECK_REPORT_PATCHED ??= "1" |
51 | CVE_CHECK_SHOW_WARNINGS ??= "1" | ||
51 | 52 | ||
52 | # Provide text output | 53 | # Provide text output |
53 | CVE_CHECK_FORMAT_TEXT ??= "1" | 54 | CVE_CHECK_FORMAT_TEXT ??= "1" |
@@ -436,7 +437,7 @@ def cve_write_data_text(d, patched, unpatched, ignored, cve_data): | |||
436 | write_string += "VECTOR: %s\n" % cve_data[cve]["vector"] | 437 | write_string += "VECTOR: %s\n" % cve_data[cve]["vector"] |
437 | write_string += "MORE INFORMATION: %s%s\n\n" % (nvd_link, cve) | 438 | write_string += "MORE INFORMATION: %s%s\n\n" % (nvd_link, cve) |
438 | 439 | ||
439 | if unpatched_cves: | 440 | if unpatched_cves and d.getVar("CVE_CHECK_SHOW_WARNINGS") == "1": |
440 | bb.warn("Found unpatched CVE (%s), for more information check %s" % (" ".join(unpatched_cves),cve_file)) | 441 | bb.warn("Found unpatched CVE (%s), for more information check %s" % (" ".join(unpatched_cves),cve_file)) |
441 | 442 | ||
442 | if write_string: | 443 | if write_string: |