diff options
-rw-r--r-- | meta/recipes-core/meta/cve-update-nvd2-native.bb | 5 |
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 b9c18bf6b6..32a14a932b 100644 --- a/meta/recipes-core/meta/cve-update-nvd2-native.bb +++ b/meta/recipes-core/meta/cve-update-nvd2-native.bb | |||
@@ -229,6 +229,11 @@ def update_db_file(db_tmp_file, d, database_time): | |||
229 | # We haven't managed to download data | 229 | # We haven't managed to download data |
230 | return False | 230 | return False |
231 | 231 | ||
232 | # hack for json5 style responses | ||
233 | if raw_data[-3:] == ',]}': | ||
234 | bb.note("Removing trailing ',' from nvd response") | ||
235 | raw_data = raw_data[:-3] + ']}' | ||
236 | |||
232 | data = json.loads(raw_data) | 237 | data = json.loads(raw_data) |
233 | 238 | ||
234 | index = data["startIndex"] | 239 | index = data["startIndex"] |