All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/6] cve-update-db-native: don't hardcode the database name
@ 2019-11-18 16:46 Ross Burton
  2019-11-18 16:46 ` [PATCH 2/6] cve-update-db-native: add an index on the CVE ID column Ross Burton
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Ross Burton @ 2019-11-18 16:46 UTC (permalink / raw)
  To: openembedded-core

Don't hardcode the database filename, there's a variable for this in
cve-check.bbclass.

Signed-off-by: Ross Burton <ross.burton@intel.com>
---
 meta/recipes-core/meta/cve-update-db-native.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-core/meta/cve-update-db-native.bb b/meta/recipes-core/meta/cve-update-db-native.bb
index 19875a49b1c..c15534de08b 100644
--- a/meta/recipes-core/meta/cve-update-db-native.bb
+++ b/meta/recipes-core/meta/cve-update-db-native.bb
@@ -28,8 +28,8 @@ python do_populate_cve_db() {
     BASE_URL = "https://nvd.nist.gov/feeds/json/cve/1.0/nvdcve-1.0-"
     YEAR_START = 2002
 
-    db_dir = os.path.join(d.getVar("DL_DIR"), 'CVE_CHECK')
-    db_file = os.path.join(db_dir, 'nvdcve_1.0.db')
+    db_file = d.getVar("CVE_CHECK_DB_FILE")
+    db_dir = os.path.dirname(db_file)
     json_tmpfile = os.path.join(db_dir, 'nvd.json.gz')
 
     # Don't refresh the database more than once an hour
-- 
2.20.1



^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-11-19  9:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-18 16:46 [PATCH 1/6] cve-update-db-native: don't hardcode the database name Ross Burton
2019-11-18 16:46 ` [PATCH 2/6] cve-update-db-native: add an index on the CVE ID column Ross Burton
2019-11-18 16:46 ` [PATCH 3/6] cve-update-db-native: clean up proxy handling Ross Burton
2019-11-18 16:51   ` Mark Hatle
2019-11-18 16:46 ` [PATCH 4/6] cve-check: rewrite look to fix false negatives Ross Burton
2019-11-18 16:46 ` [PATCH 5/6] cve-check: neaten get_cve_info Ross Burton
2019-11-18 16:46 ` [PATCH 6/6] cve-check: fetch CVE data once at a time instead of in a single call Ross Burton
2019-11-18 19:11 ` [PATCH 1/6] cve-update-db-native: don't hardcode the database name akuster808
2019-11-19  9:24   ` Ross Burton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.