summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSebastien Delafond <seb@debian.org>2017-08-04 14:02:00 +0000
committerSebastien Delafond <seb@debian.org>2017-08-04 14:02:00 +0000
commit1ed89792695f939d9ec51fb76191e80c4b212a57 (patch)
treecab4aab9ebc55c4916fd4447a4c98f21bf0aeec9 /lib
parent9e79d18f2b9c91cf8d2612a4f584aedc4ba26740 (diff)
Fix parser for DLA/list
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@54256 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'lib')
-rw-r--r--lib/python/sectracker/parsers.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/python/sectracker/parsers.py b/lib/python/sectracker/parsers.py
index 518b6039a4..4b3125e50f 100644
--- a/lib/python/sectracker/parsers.py
+++ b/lib/python/sectracker/parsers.py
@@ -316,10 +316,9 @@ def dtsalist(path, f):
@_xpickle.loader("DLA" + FORMAT)
def dlalist(path, f):
- re_header = re.compile(
- r'^\[([A-Z][a-z]{2,}) (\d\d?)(?:st|nd|rd|th), (\d{4})\] '
- + r'(DLA-\d+-\d+)\s+'
- + r'(.*?)\s*$')
+ re_header = re.compile(r'^\[(\d\d) ([A-Z][a-z][a-z]) (\d{4})\] '
+ + r'(DLA-\d+(?:-\d+)?)\s+'
+ + r'(.*?)\s*$')
def parseheader(line):
match = re_header.match(line)
if match is None:

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