summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <pochu@debian.org>2023-04-28 13:41:40 +0200
committerEmilio Pozuelo Monfort <pochu@debian.org>2023-04-28 13:41:40 +0200
commitd5e7585e26861bf5e1c178c5181f9b35e5b35d7e (patch)
tree1ee8f23f2214891832cad0d9c6c01ab38babdf6d /bin
parent48a11b1e5e4fc0489d8079fb3e3a09290068a1b2 (diff)
process-cve-records: fix detection of empty CVEs
If a CVE has a PackageAnnotation, it shouldn't get a TODO: check note.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/process-cve-records3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/process-cve-records b/bin/process-cve-records
index 39b7ca3f25..2ab2c2f47f 100755
--- a/bin/process-cve-records
+++ b/bin/process-cve-records
@@ -72,7 +72,8 @@ def parse_record(record, cve):
cve.header.description = f"({desc})"
if not is_reserved(record) and not is_rejected(record) \
- and not get_annotation(cve.annotations, parsers.StringAnnotation):
+ and not get_annotation(cve.annotations, parsers.StringAnnotation) \
+ and not get_annotation(cve.annotations, parsers.PackageAnnotation):
ann = parsers.StringAnnotation(0, 'TODO', 'check')
cve.annotations.append(ann)

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