summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <pochu@debian.org>2018-05-11 17:51:01 +0200
committerEmilio Pozuelo Monfort <pochu@debian.org>2018-06-08 10:04:21 +0200
commitb59cbe46e12d468b4a41cf599ca12a2dcd024b92 (patch)
treebaec6bc0a4de1df42ca7aaf0e32a92d1c1915778 /lib
parentbf1f037a3270e19cda4fb350124fc21f3964f6c1 (diff)
Rename CVECUSTOMERFile to CVEExtendFile
Diffstat (limited to 'lib')
-rw-r--r--lib/python/bugs.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/python/bugs.py b/lib/python/bugs.py
index 676f5f540f..bcfa9b1ce5 100644
--- a/lib/python/bugs.py
+++ b/lib/python/bugs.py
@@ -780,7 +780,11 @@ class CVEFile(FileBase):
bug.mergeNotes()
return bug
-class CVECUSTOMERFile(CVEFile):
+class CVEExtendFile(CVEFile):
+ # This is an extend file. The main CVEFile can have a 'CVE-2018-XXXX' (sic)
+ # identifier, which will get converted to TEMP-* automatically. However to
+ # refer to that one from here, we need to use the TEMP-* identifier, so we
+ # allow those in the regex
re_cve = re.compile(r'^(CVE-\d{4}-(?:\d{4,}|XXXX)|TEMP-\d+-\S+)\s+(.*?)\s*$')
is_extend = True

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