]> code.ossystems Code Review - openembedded-core.git/commitdiff
cve-check: we don't actually need to unpack to check
authorRoss Burton <ross.burton@intel.com>
Sun, 8 Dec 2019 18:35:50 +0000 (20:35 +0200)
committerArmin Kuster <akuster808@gmail.com>
Mon, 23 Dec 2019 04:26:27 +0000 (20:26 -0800)
The patch scanner works with patch files in the layer, not in the workdir, so it
doesn't need to unpack.

(From OE-Core rev: 2cba6ada970deb5156e1ba0182f4f372851e3c17)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/cve-check.bbclass

index 1c8b2223a20832db0a64d8be705c8dc8301591f5..3326944d791d982f7a654e291ed2e05277f34b60 100644 (file)
@@ -62,7 +62,7 @@ python do_cve_check () {
 
 }
 
-addtask cve_check after do_unpack before do_build
+addtask cve_check before do_build
 do_cve_check[depends] = "cve-update-db-native:do_populate_cve_db"
 do_cve_check[nostamp] = "1"
 
@@ -70,7 +70,6 @@ python cve_check_cleanup () {
     """
     Delete the file used to gather all the CVE information.
     """
-
     bb.utils.remove(e.data.getVar("CVE_CHECK_TMP_FILE"))
 }