diff options
author | Pierre Le Magourou <pierre.lemagourou@softbankrobotics.com> | 2019-07-08 10:59:28 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-07-10 09:56:22 +0100 |
commit | 151c13d3aacca5235ee74584155dd45e7c9ccfff (patch) | |
tree | 0773fa25511791c9f1b9903cce93cbb30fa76f6a /meta | |
parent | 96b1062476cb15e989e9b3dc95469942f0de9211 (diff) | |
download | poky-151c13d3aacca5235ee74584155dd45e7c9ccfff.tar.gz |
cve-update-db-native: Skip recipe when cve-check class is not loaded.
(From OE-Core rev: c807c2a6409e122599196cd914a638b00121cab6)
Signed-off-by: Pierre Le Magourou <pierre.lemagourou@softbankrobotics.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/meta/cve-update-db-native.bb | 5 |
1 files changed, 5 insertions, 0 deletions
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 | |||
13 | deltask do_install | 13 | deltask do_install |
14 | deltask do_populate_sysroot | 14 | deltask do_populate_sysroot |
15 | 15 | ||
16 | python () { | ||
17 | if not d.getVar("CVE_CHECK_DB_FILE"): | ||
18 | raise bb.parse.SkipRecipe("Skip recipe when cve-check class is not loaded.") | ||
19 | } | ||
20 | |||
16 | python do_populate_cve_db() { | 21 | python do_populate_cve_db() { |
17 | """ | 22 | """ |
18 | Update NVD database with json data feed | 23 | Update NVD database with json data feed |