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