summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/vex.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/vex.bbclass b/meta/classes/vex.bbclass
index c447b37db8..707e6f45a1 100644
--- a/meta/classes/vex.bbclass
+++ b/meta/classes/vex.bbclass
@@ -213,6 +213,8 @@ python vex_write_rootfs_manifest () {
213 with open(pkgfilepath) as j: 213 with open(pkgfilepath) as j:
214 data = json.load(j) 214 data = json.load(j)
215 cve_check_merge_jsons(json_data, data) 215 cve_check_merge_jsons(json_data, data)
216 else:
217 bb.warn("Missing cve file for %s" % pkg)
216 218
217 d.setVar("PN", save_pn) 219 d.setVar("PN", save_pn)
218 220
@@ -306,9 +308,12 @@ def cve_write_data_json(d, cve_data, cve_status):
306 cvelogpath = d.getVar("CVE_CHECK_SUMMARY_DIR") 308 cvelogpath = d.getVar("CVE_CHECK_SUMMARY_DIR")
307 index_path = d.getVar("CVE_CHECK_SUMMARY_INDEX_PATH") 309 index_path = d.getVar("CVE_CHECK_SUMMARY_INDEX_PATH")
308 bb.utils.mkdirhier(cvelogpath) 310 bb.utils.mkdirhier(cvelogpath)
311 bb.utils.mkdirhier(os.path.dirname(deploy_file))
309 fragment_file = os.path.basename(deploy_file) 312 fragment_file = os.path.basename(deploy_file)
310 fragment_path = os.path.join(cvelogpath, fragment_file) 313 fragment_path = os.path.join(cvelogpath, fragment_file)
311 with open(fragment_path, "w") as f: 314 with open(fragment_path, "w") as f:
312 f.write(write_string) 315 f.write(write_string)
316 with open(deploy_file, "w") as f:
317 f.write(write_string)
313 with open(index_path, "a+") as f: 318 with open(index_path, "a+") as f:
314 f.write("%s\n" % fragment_path) 319 f.write("%s\n" % fragment_path)