summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/meta/cve-update-db-native.bb7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/recipes-core/meta/cve-update-db-native.bb b/meta/recipes-core/meta/cve-update-db-native.bb
index 9e8e006a32..5d9fb59cbc 100644
--- a/meta/recipes-core/meta/cve-update-db-native.bb
+++ b/meta/recipes-core/meta/cve-update-db-native.bb
@@ -137,9 +137,14 @@ def parse_node_and_insert(c, node, cveId):
137 product = cpe23[4] 137 product = cpe23[4]
138 version = cpe23[5] 138 version = cpe23[5]
139 139
140 if cpe23[6] == '*' or cpe23[6] == '-':
141 version_suffix = ""
142 else:
143 version_suffix = "_" + cpe23[6]
144
140 if version != '*' and version != '-': 145 if version != '*' and version != '-':
141 # Version is defined, this is a '=' match 146 # Version is defined, this is a '=' match
142 yield [cveId, vendor, product, version, '=', '', ''] 147 yield [cveId, vendor, product, version + version_suffix, '=', '', '']
143 elif version == '-': 148 elif version == '-':
144 # no version information is available 149 # no version information is available
145 yield [cveId, vendor, product, version, '', '', ''] 150 yield [cveId, vendor, product, version, '', '', '']