summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/cve-check.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass
index 061e883fa7..d8087dd7c6 100644
--- a/meta/classes/cve-check.bbclass
+++ b/meta/classes/cve-check.bbclass
@@ -169,6 +169,9 @@ def check_cves(d, patched_cves):
169 cves_patched = [] 169 cves_patched = []
170 cves_unpatched = [] 170 cves_unpatched = []
171 bpn = d.getVar("CVE_PRODUCT") 171 bpn = d.getVar("CVE_PRODUCT")
172 # If this has been unset then we're not scanning for CVEs here (for example, image recipes)
173 if not bpn:
174 return ([], [])
172 pv = d.getVar("CVE_VERSION").split("+git")[0] 175 pv = d.getVar("CVE_VERSION").split("+git")[0]
173 cves = " ".join(patched_cves) 176 cves = " ".join(patched_cves)
174 cve_db_dir = d.getVar("CVE_CHECK_DB_DIR") 177 cve_db_dir = d.getVar("CVE_CHECK_DB_DIR")