]> code.ossystems Code Review - openembedded-core.git/commitdiff
cve-update-db-native: be less magical about checking whether the cve-check class...
authorChris Laplante <chris.laplante@agilent.com>
Mon, 14 Sep 2020 15:33:18 +0000 (11:33 -0400)
committerSteve Sakoman <steve@sakoman.com>
Mon, 28 Sep 2020 17:55:37 +0000 (07:55 -1000)
Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit cbc717350b21fb417fa6f83621022ac633a26124)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-core/meta/cve-update-db-native.bb

index 328f6ab3645e1b84e74345018d9bad8ce428aa2a..2c0e508e3288fd56456469d221228886afd88fab 100644 (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 ):