[OE-core] [PATCH 1/5] cve-check: honor RM_OLD_IMAGE flag
Peter Marko
peter.marko at siemens.com
Mon Jun 5 07:21:09 UTC 2017
Signed-off-by: Peter Marko <peter.marko at siemens.com>
---
meta/classes/cve-check.bbclass | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass
index 3a9e227..d8ac412 100644
--- a/meta/classes/cve-check.bbclass
+++ b/meta/classes/cve-check.bbclass
@@ -96,6 +96,8 @@ python cve_check_write_rootfs_manifest () {
manifest_link = os.path.join(deploy_dir, "%s.cve" % link_name)
# If we already have another manifest, update symlinks
if os.path.exists(os.path.realpath(manifest_link)):
+ if d.getVar('RM_OLD_IMAGE') == "1":
+ os.remove(os.path.realpath(manifest_link))
os.remove(manifest_link)
os.symlink(os.path.basename(manifest_name), manifest_link)
bb.plain("Image CVE report stored in: %s" % manifest_name)
--
2.1.4
More information about the Openembedded-core
mailing list