[oe-commits] [openembedded-core] 06/41: cve-check: clean cve-check recipe result before re-building

git at git.openembedded.org git at git.openembedded.org
Sun Jun 11 09:58:52 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 514091c6fe388590d2777c12cbcd2e5348a38b0b
Author: Peter Marko <peter.marko at siemens.com>
AuthorDate: Wed Jun 7 08:04:30 2017 +0200

    cve-check: clean cve-check recipe result before re-building
    
    If there is cve report for a recipe in previous build and there
    is no result for current one, old cves are kept in CVE_CHECK_DIR.
    This happens on version upgrade or when cve/recipe is whitelisted.
    
    Signed-off-by: Peter Marko <peter.marko at siemens.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/classes/cve-check.bbclass | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass
index 3a9e227..09487f1 100644
--- a/meta/classes/cve-check.bbclass
+++ b/meta/classes/cve-check.bbclass
@@ -83,6 +83,11 @@ python cve_check_write_rootfs_manifest () {
 
     import shutil
 
+    if d.getVar("CVE_CHECK_COPY_FILES") == "1":
+        deploy_file = os.path.join(d.getVar("CVE_CHECK_DIR"), d.getVar("PN"))
+        if os.path.exists(deploy_file):
+            bb.utils.remove(deploy_file)
+
     if os.path.exists(d.getVar("CVE_CHECK_TMP_FILE")):
         bb.note("Writing rootfs CVE manifest")
         deploy_dir = d.getVar("DEPLOY_DIR_IMAGE")

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list