summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/meta/cve-update-nvd2-native.bb5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-core/meta/cve-update-nvd2-native.bb b/meta/recipes-core/meta/cve-update-nvd2-native.bb
index b8faee68d6..9808120cab 100644
--- a/meta/recipes-core/meta/cve-update-nvd2-native.bb
+++ b/meta/recipes-core/meta/cve-update-nvd2-native.bb
@@ -226,6 +226,11 @@ def update_db_file(db_tmp_file, d, database_time):
226 # We haven't managed to download data 226 # We haven't managed to download data
227 return False 227 return False
228 228
229 # hack for json5 style responses
230 if raw_data[-3:] == ',]}':
231 bb.note("Removing trailing ',' from nvd response")
232 raw_data = raw_data[:-3] + ']}'
233
229 data = json.loads(raw_data) 234 data = json.loads(raw_data)
230 235
231 index = data["startIndex"] 236 index = data["startIndex"]