]> code.ossystems Code Review - openembedded-core.git/commitdiff
cve-check: Run it after do_fetch
authorKhem Raj <raj.khem@gmail.com>
Wed, 8 Jul 2020 21:07:48 +0000 (00:07 +0300)
committerAnuj Mittal <anuj.mittal@intel.com>
Fri, 17 Jul 2020 01:36:48 +0000 (09:36 +0800)
Certain recipes e.g. bash readline ( from meta-gplv2 ) download patches instead of having them in
metadata, this could fail cve_check

ERROR: readline-5.2-r9 do_cve_check: File Not found: qemuarm/build/../downloads/readline52-001

This patch ensures that download is done before running CVE scan, even
though these will be external patches and may not contain CVE tags as it
expects, but it will fix the run failures as seen above

(From OE-Core rev: dbf143d79476e54e8da93101fc16eaedeec88362)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit e406fcb6c609a0d2456d7da0d2406d2d9fa52dd2)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/classes/cve-check.bbclass

index 2a530a048994ddf7505b6e2d19637b1dee9f5b3e..556ac6e67f8555609c8356ebe62414edf6f9d4cb 100644 (file)
@@ -65,7 +65,7 @@ python do_cve_check () {
 
 }
 
-addtask cve_check before do_build
+addtask cve_check before do_build after do_fetch
 do_cve_check[depends] = "cve-update-db-native:do_populate_cve_db"
 do_cve_check[nostamp] = "1"