From: Lee Chee Yang Date: Thu, 2 Apr 2020 11:48:55 +0000 (+0800) Subject: cve-update-db-native: fix DB file version for '-' X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~11392 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=0ec35b00d65c70485eb1efe602d9fca53e926811;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- diff --git a/meta/recipes-core/meta/cve-update-db-native.bb b/meta/recipes-core/meta/cve-update-db-native.bb index 497d957d653..f27ade40dbb 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 = ''