summaryrefslogtreecommitdiffstats
path: root/meta/classes/cve-check.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/cve-check.bbclass')
-rw-r--r--meta/classes/cve-check.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass
index 6b627464a0..5369b7074c 100644
--- a/meta/classes/cve-check.bbclass
+++ b/meta/classes/cve-check.bbclass
@@ -323,7 +323,8 @@ def get_cve_info(d, cves):
323 import sqlite3 323 import sqlite3
324 324
325 cve_data = {} 325 cve_data = {}
326 conn = sqlite3.connect(d.getVar("CVE_CHECK_DB_FILE")) 326 db_file = d.expand("file:${CVE_CHECK_DB_FILE}?mode=ro")
327 conn = sqlite3.connect(db_file, uri=True)
327 328
328 for cve in cves: 329 for cve in cves:
329 for row in conn.execute("SELECT * FROM NVD WHERE ID IS ?", (cve,)): 330 for row in conn.execute("SELECT * FROM NVD WHERE ID IS ?", (cve,)):