cve-update-db-native: be less magical about checking whether the cve-check class is enabled

(From OE-Core rev: cbc717350b21fb417fa6f83621022ac633a26124)

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Chris Laplante
2020-09-14 11:33:18 -04:00
committed by Richard Purdie
parent 163968110d
commit a834ee990f

View File

@@ -13,8 +13,7 @@ deltask do_install
deltask do_populate_sysroot
python () {
cve_check_db_file = d.getVar("CVE_CHECK_DB_FILE")
if not cve_check_db_file:
if not bb.data.inherits_class("cve-check", d):
raise bb.parse.SkipRecipe("Skip recipe when cve-check class is not loaded.")
if os.path.exists("%s-journal" % cve_check_db_file ):