From: Pierre Le Magourou Date: Mon, 8 Jul 2019 08:59:28 +0000 (+0200) Subject: cve-update-db-native: Skip recipe when cve-check class is not loaded. X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~13942 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c807c2a6409e122599196cd914a638b00121cab6;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git cve-update-db-native: Skip recipe when cve-check class is not loaded. Signed-off-by: Pierre Le Magourou Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-core/meta/cve-update-db-native.bb b/meta/recipes-core/meta/cve-update-db-native.bb index d658c7bfea8..e16c41a72fd 100644 --- a/meta/recipes-core/meta/cve-update-db-native.bb +++ b/meta/recipes-core/meta/cve-update-db-native.bb @@ -13,6 +13,11 @@ deltask do_compile deltask do_install deltask do_populate_sysroot +python () { + if not d.getVar("CVE_CHECK_DB_FILE"): + raise bb.parse.SkipRecipe("Skip recipe when cve-check class is not loaded.") +} + python do_populate_cve_db() { """ Update NVD database with json data feed