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 90097cfde8..c6a410e2b2 100644
--- a/meta/classes/cve-check.bbclass
+++ b/meta/classes/cve-check.bbclass
@@ -254,13 +254,15 @@ python cve_check_write_rootfs_manifest () {
254 254
255 if enable_json: 255 if enable_json:
256 manifest_name_suffix = d.getVar("CVE_CHECK_MANIFEST_JSON_SUFFIX") 256 manifest_name_suffix = d.getVar("CVE_CHECK_MANIFEST_JSON_SUFFIX")
257 link_path = os.path.join(deploy_dir, "%s.%s" % (link_name, manifest_name_suffix))
258 manifest_name = d.getVar("CVE_CHECK_MANIFEST_JSON") 257 manifest_name = d.getVar("CVE_CHECK_MANIFEST_JSON")
259 258
260 with open(manifest_name, "w") as f: 259 with open(manifest_name, "w") as f:
261 json.dump(json_data, f, indent=2) 260 json.dump(json_data, f, indent=2)
262 261
263 update_symlinks(manifest_name, link_path) 262 if link_name:
263 link_path = os.path.join(deploy_dir, "%s.%s" % (link_name, manifest_name_suffix))
264 update_symlinks(manifest_name, link_path)
265
264 bb.plain("Image CVE JSON report stored in: %s" % manifest_name) 266 bb.plain("Image CVE JSON report stored in: %s" % manifest_name)
265} 267}
266 268