diff options
-rw-r--r-- | meta/classes/vex.bbclass | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/vex.bbclass b/meta/classes/vex.bbclass index 905d67b47d..402d8e0d96 100644 --- a/meta/classes/vex.bbclass +++ b/meta/classes/vex.bbclass | |||
@@ -196,6 +196,8 @@ python vex_write_rootfs_manifest () { | |||
196 | with open(pkgfilepath) as j: | 196 | with open(pkgfilepath) as j: |
197 | data = json.load(j) | 197 | data = json.load(j) |
198 | cve_check_merge_jsons(json_data, data) | 198 | cve_check_merge_jsons(json_data, data) |
199 | else: | ||
200 | bb.warn("Missing cve file for %s" % pkg) | ||
199 | 201 | ||
200 | d.setVar("PN", save_pn) | 202 | d.setVar("PN", save_pn) |
201 | 203 | ||
@@ -290,9 +292,12 @@ def cve_write_data_json(d, cve_data, cve_status): | |||
290 | cvelogpath = d.getVar("CVE_CHECK_SUMMARY_DIR") | 292 | cvelogpath = d.getVar("CVE_CHECK_SUMMARY_DIR") |
291 | index_path = d.getVar("CVE_CHECK_SUMMARY_INDEX_PATH") | 293 | index_path = d.getVar("CVE_CHECK_SUMMARY_INDEX_PATH") |
292 | bb.utils.mkdirhier(cvelogpath) | 294 | bb.utils.mkdirhier(cvelogpath) |
295 | bb.utils.mkdirhier(os.path.dirname(deploy_file)) | ||
293 | fragment_file = os.path.basename(deploy_file) | 296 | fragment_file = os.path.basename(deploy_file) |
294 | fragment_path = os.path.join(cvelogpath, fragment_file) | 297 | fragment_path = os.path.join(cvelogpath, fragment_file) |
295 | with open(fragment_path, "w") as f: | 298 | with open(fragment_path, "w") as f: |
296 | f.write(write_string) | 299 | f.write(write_string) |
300 | with open(deploy_file, "w") as f: | ||
301 | f.write(write_string) | ||
297 | with open(index_path, "a+") as f: | 302 | with open(index_path, "a+") as f: |
298 | f.write("%s\n" % fragment_path) | 303 | f.write("%s\n" % fragment_path) |