summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <pochu@debian.org>2023-03-20 13:24:40 +0100
committerEmilio Pozuelo Monfort <pochu@debian.org>2023-03-27 10:25:24 +0200
commit7b5282a4b9f40d9f4ba27153b6ca4146cde548f6 (patch)
tree1461d27900ad9303e31dc93d4ed213b77c0c3bec /bin
parent33c20cbe6e85d32c1701898354dbc08a7a29a477 (diff)
merge-cve-files: replace the annotations directly
Without creating a new object. Also since we're not creating new objects, there's no need to recreate the data list.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/merge-cve-files3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/merge-cve-files b/bin/merge-cve-files
index e016912b53..7ce47545b5 100755
--- a/bin/merge-cve-files
+++ b/bin/merge-cve-files
@@ -141,9 +141,8 @@ for extra_bug in extra_data:
new_annotations = merge_annotations(new_annotations, extra_annotation)
- bug = bug._replace(annotations=new_annotations)
+ bug.annotations = new_annotations
merge_notes(bug, notes)
- data = [bug if bug.header.name == old_bug.header.name else old_bug for old_bug in data]
with open(main_list, 'w') as f:
writecvelist(data, f)

© 2014-2024 Faster IT GmbH | imprint | privacy policy