From 0ec35b00d65c70485eb1efe602d9fca53e926811 Mon Sep 17 00:00:00 2001 From: Lee Chee Yang Date: Thu, 2 Apr 2020 19:48:55 +0800 Subject: cve-update-db-native: fix DB file version for '-' fix logic for CVE DB update so that when the CPE version is '-', it keeps the version as '-' in the DB file too and leave other operation as blank. Signed-off-by: Lee Chee Yang Signed-off-by: Richard Purdie --- meta/recipes-core/meta/cve-update-db-native.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/recipes-core/meta/cve-update-db-native.bb b/meta/recipes-core/meta/cve-update-db-native.bb index 497d957d65..f27ade40db 100644 --- a/meta/recipes-core/meta/cve-update-db-native.bb +++ b/meta/recipes-core/meta/cve-update-db-native.bb @@ -138,6 +138,9 @@ def parse_node_and_insert(c, node, cveId): if version != '*' and version != '-': # Version is defined, this is a '=' match yield [cveId, vendor, product, version, '=', '', ''] + elif version == '-': + # no version information is available + yield [cveId, vendor, product, version, '', '', ''] else: # Parse start version, end version and operators op_start = '' -- cgit 1.2.3-korg