summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/cve-check.bbclass2
-rw-r--r--meta/recipes-core/meta/cve-update-db-native.bb9
2 files changed, 6 insertions, 5 deletions
diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass
index 17f64a8a9c..02fef7c205 100644
--- a/meta/classes/cve-check.bbclass
+++ b/meta/classes/cve-check.bbclass
@@ -97,7 +97,7 @@ python do_cve_check () {
97} 97}
98 98
99addtask cve_check before do_build after do_fetch 99addtask cve_check before do_build after do_fetch
100do_cve_check[depends] = "cve-update-db-native:do_populate_cve_db" 100do_cve_check[depends] = "cve-update-db-native:do_fetch"
101do_cve_check[nostamp] = "1" 101do_cve_check[nostamp] = "1"
102 102
103python cve_check_cleanup () { 103python cve_check_cleanup () {
diff --git a/meta/recipes-core/meta/cve-update-db-native.bb b/meta/recipes-core/meta/cve-update-db-native.bb
index 27b4c58d4e..e4e2451bfd 100644
--- a/meta/recipes-core/meta/cve-update-db-native.bb
+++ b/meta/recipes-core/meta/cve-update-db-native.bb
@@ -24,7 +24,7 @@ python () {
24 os.remove(cve_check_db_file) 24 os.remove(cve_check_db_file)
25} 25}
26 26
27python do_populate_cve_db() { 27python do_fetch() {
28 """ 28 """
29 Update NVD database with json data feed 29 Update NVD database with json data feed
30 """ 30 """
@@ -114,7 +114,9 @@ python do_populate_cve_db() {
114 conn.close() 114 conn.close()
115} 115}
116 116
117do_populate_cve_db[lockfiles] += "${CVE_CHECK_DB_FILE_LOCK}" 117do_fetch[lockfiles] += "${CVE_CHECK_DB_FILE_LOCK}"
118do_fetch[file-checksums] = ""
119do_fetch[vardeps] = ""
118 120
119def initialize_db(c): 121def initialize_db(c):
120 c.execute("CREATE TABLE IF NOT EXISTS META (YEAR INTEGER UNIQUE, DATE TEXT)") 122 c.execute("CREATE TABLE IF NOT EXISTS META (YEAR INTEGER UNIQUE, DATE TEXT)")
@@ -206,7 +208,6 @@ def update_db(c, jsondata):
206 parse_node_and_insert(c, config, cveId) 208 parse_node_and_insert(c, config, cveId)
207 209
208 210
209addtask do_populate_cve_db before do_fetch 211do_fetch[nostamp] = "1"
210do_populate_cve_db[nostamp] = "1"
211 212
212EXCLUDE_FROM_WORLD = "1" 213EXCLUDE_FROM_WORLD = "1"