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
commit668eb7b2899a57e528ddf594d44a84338e640afa (patch)
treec7a05679edde0df58e84b92fd039750691a9bf2b /lib
parent140788a21a6fe56bf43317c7aa0e98253fa9d04b (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