summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/cve-check.bbclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass
index badfee550c..6b8376bf17 100644
--- a/meta/classes/cve-check.bbclass
+++ b/meta/classes/cve-check.bbclass
@@ -270,13 +270,14 @@ python cve_check_write_rootfs_manifest () {
270 d.setVar("PN", save_pn) 270 d.setVar("PN", save_pn)
271 271
272 if enable_text: 272 if enable_text:
273 link_path = os.path.join(deploy_dir, "%s.cve" % link_name)
274 manifest_name = d.getVar("CVE_CHECK_MANIFEST") 273 manifest_name = d.getVar("CVE_CHECK_MANIFEST")
275 274
276 with open(manifest_name, "w") as f: 275 with open(manifest_name, "w") as f:
277 f.write(text_data) 276 f.write(text_data)
278 277
279 update_symlinks(manifest_name, link_path) 278 if link_name:
279 link_path = os.path.join(deploy_dir, "%s.cve" % link_name)
280 update_symlinks(manifest_name, link_path)
280 bb.plain("Image CVE report stored in: %s" % manifest_name) 281 bb.plain("Image CVE report stored in: %s" % manifest_name)
281 282
282 if enable_json: 283 if enable_json: