From 151c13d3aacca5235ee74584155dd45e7c9ccfff Mon Sep 17 00:00:00 2001 From: Pierre Le Magourou Date: Mon, 8 Jul 2019 10:59:28 +0200 Subject: cve-update-db-native: Skip recipe when cve-check class is not loaded. (From OE-Core rev: c807c2a6409e122599196cd914a638b00121cab6) Signed-off-by: Pierre Le Magourou Signed-off-by: Richard Purdie --- meta/recipes-core/meta/cve-update-db-native.bb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'meta/recipes-core/meta/cve-update-db-native.bb') diff --git a/meta/recipes-core/meta/cve-update-db-native.bb b/meta/recipes-core/meta/cve-update-db-native.bb index d658c7bfea..e16c41a72f 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 -- cgit v1.2.3-54-g00ecf