diff options
-rw-r--r-- | meta/classes/cve-check.bbclass | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass index bc2f03f7dd..62dd6424d5 100644 --- a/meta/classes/cve-check.bbclass +++ b/meta/classes/cve-check.bbclass | |||
@@ -27,8 +27,7 @@ CVE_PRODUCT ??= "${BPN}" | |||
27 | CVE_CHECK_DB_DIR ?= "${DL_DIR}/CVE_CHECK" | 27 | CVE_CHECK_DB_DIR ?= "${DL_DIR}/CVE_CHECK" |
28 | CVE_CHECK_DB_FILE ?= "${CVE_CHECK_DB_DIR}/nvd.db" | 28 | CVE_CHECK_DB_FILE ?= "${CVE_CHECK_DB_DIR}/nvd.db" |
29 | 29 | ||
30 | CVE_CHECK_LOCAL_DIR ?= "${WORKDIR}/cve" | 30 | CVE_CHECK_LOG ?= "${T}/cve.log" |
31 | CVE_CHECK_LOCAL_FILE ?= "${CVE_CHECK_LOCAL_DIR}/cve.log" | ||
32 | CVE_CHECK_TMP_FILE ?= "${TMPDIR}/cve_check" | 31 | CVE_CHECK_TMP_FILE ?= "${TMPDIR}/cve_check" |
33 | 32 | ||
34 | CVE_CHECK_DIR ??= "${DEPLOY_DIR}/cve" | 33 | CVE_CHECK_DIR ??= "${DEPLOY_DIR}/cve" |
@@ -251,11 +250,11 @@ def cve_write_data(d, patched, unpatched, cve_data): | |||
251 | CVE manifest if enabled. | 250 | CVE manifest if enabled. |
252 | """ | 251 | """ |
253 | 252 | ||
254 | cve_file = d.getVar("CVE_CHECK_LOCAL_FILE") | 253 | cve_file = d.getVar("CVE_CHECK_LOG") |
255 | nvd_link = "https://web.nvd.nist.gov/view/vuln/detail?vulnId=" | 254 | nvd_link = "https://web.nvd.nist.gov/view/vuln/detail?vulnId=" |
256 | write_string = "" | 255 | write_string = "" |
257 | unpatched_cves = [] | 256 | unpatched_cves = [] |
258 | bb.utils.mkdirhier(d.getVar("CVE_CHECK_LOCAL_DIR")) | 257 | bb.utils.mkdirhier(os.path.dirname(cve_file)) |
259 | 258 | ||
260 | for cve in sorted(cve_data): | 259 | for cve in sorted(cve_data): |
261 | write_string += "PACKAGE NAME: %s\n" % d.getVar("PN") | 260 | write_string += "PACKAGE NAME: %s\n" % d.getVar("PN") |