diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/cve-check.bbclass | 2 | ||||
-rw-r--r-- | meta/recipes-core/meta/cve-update-db-native.bb | 9 |
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 | ||
99 | addtask cve_check before do_build after do_fetch | 99 | addtask cve_check before do_build after do_fetch |
100 | do_cve_check[depends] = "cve-update-db-native:do_populate_cve_db" | 100 | do_cve_check[depends] = "cve-update-db-native:do_fetch" |
101 | do_cve_check[nostamp] = "1" | 101 | do_cve_check[nostamp] = "1" |
102 | 102 | ||
103 | python cve_check_cleanup () { | 103 | python 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 | ||
27 | python do_populate_cve_db() { | 27 | python 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 | ||
117 | do_populate_cve_db[lockfiles] += "${CVE_CHECK_DB_FILE_LOCK}" | 117 | do_fetch[lockfiles] += "${CVE_CHECK_DB_FILE_LOCK}" |
118 | do_fetch[file-checksums] = "" | ||
119 | do_fetch[vardeps] = "" | ||
118 | 120 | ||
119 | def initialize_db(c): | 121 | def 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 | ||
209 | addtask do_populate_cve_db before do_fetch | 211 | do_fetch[nostamp] = "1" |
210 | do_populate_cve_db[nostamp] = "1" | ||
211 | 212 | ||
212 | EXCLUDE_FROM_WORLD = "1" | 213 | EXCLUDE_FROM_WORLD = "1" |