summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/cve-check.bbclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass
index ed219bf472..badfee550c 100644
--- a/meta/classes/cve-check.bbclass
+++ b/meta/classes/cve-check.bbclass
@@ -281,13 +281,15 @@ python cve_check_write_rootfs_manifest () {
281 281
282 if enable_json: 282 if enable_json:
283 manifest_name_suffix = d.getVar("CVE_CHECK_MANIFEST_JSON_SUFFIX") 283 manifest_name_suffix = d.getVar("CVE_CHECK_MANIFEST_JSON_SUFFIX")
284 link_path = os.path.join(deploy_dir, "%s.%s" % (link_name, manifest_name_suffix))
285 manifest_name = d.getVar("CVE_CHECK_MANIFEST_JSON") 284 manifest_name = d.getVar("CVE_CHECK_MANIFEST_JSON")
286 285
287 with open(manifest_name, "w") as f: 286 with open(manifest_name, "w") as f:
288 json.dump(json_data, f, indent=2) 287 json.dump(json_data, f, indent=2)
289 288
290 update_symlinks(manifest_name, link_path) 289 if link_name:
290 link_path = os.path.join(deploy_dir, "%s.%s" % (link_name, manifest_name_suffix))
291 update_symlinks(manifest_name, link_path)
292
291 bb.plain("Image CVE JSON report stored in: %s" % manifest_name) 293 bb.plain("Image CVE JSON report stored in: %s" % manifest_name)
292} 294}
293 295