diff options
author | Neil Williams <codehelp@debian.org> | 2022-02-15 14:31:42 +0000 |
---|---|---|
committer | Neil Williams <codehelp@debian.org> | 2022-02-15 14:31:42 +0000 |
commit | 31704706a9f6a3388aa1d6664de60c5fe7749d94 (patch) | |
tree | e271d709e265b9f4116cee9e2fb6153acee6fbe6 /bin/merge-cve-files | |
parent | ded33773d65b7993240d55ac0e5e07c3081f5d86 (diff) |
Allow merge-cve-files to let RESERVED through
Avoid merge-cve-files stumbling over FlagAnnotations like RESERVED and
REJECTED.
Also add code to tidy up the .xpck files that can be generated by the
merge process.
Diffstat (limited to 'bin/merge-cve-files')
-rwxr-xr-x | bin/merge-cve-files | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/merge-cve-files b/bin/merge-cve-files index 55f487e2d5..36dee7acd5 100755 --- a/bin/merge-cve-files +++ b/bin/merge-cve-files @@ -6,7 +6,7 @@ # Copyright © 2020 Emilio Pozuelo Monfort <pochu@debian.org> # Copyright (c) 2021-2022 Neil Williams <codehelp@debian.org> -import os.path +import os import sys import setup_paths # noqa @@ -129,6 +129,8 @@ for extra_bug in extra_data: notes = {} new_annotations = bug.annotations for extra_annotation in extra_bug.annotations: + if isinstance(extra_annotation, FlagAnnotation): + continue if isinstance(extra_annotation, StringAnnotation): cve = f"{extra_bug.header.name}" note_tag = notes.setdefault(cve, []) @@ -142,3 +144,8 @@ for extra_bug in extra_data: with open(main_list, 'w') as f: writecvelist(data, f) + +# check for and erase an .xpck file built from the merge +xpck = f"{extra_list}.xpck" +if os.path.exists(xpck): + os.unlink(xpck) |