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
commitac12dc8490eb7ce3a97f2a8d99cc325a0f848c40 (patch)
treed8e10121624a4f0d2c2b279f643f40eed854d4de /lib
parentc0f3926cf37d89fd5975580b39b5bd98445ef644 (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