[Git][security-tracker-team/security-tracker][master] lib: add support for data/<extended>/list in the parsers
Sylvain Beucler (@beuc)
beuc at debian.org
Fri Oct 22 13:56:20 BST 2021
Sylvain Beucler pushed to branch master at Debian Security Tracker / security-tracker
Commits:
8959f1b9 by Sylvain Beucler at 2021-10-22T14:55:44+02:00
lib: add support for data/<extended>/list in the parsers
- - - - -
1 changed file:
- lib/python/sectracker/parsers.py
Changes:
=====================================
lib/python/sectracker/parsers.py
=====================================
@@ -383,3 +383,19 @@ def dlalist(path, f):
_checkrelease(anns, diag, "DLA")
return Bug(path, Header(headerlineno, name, None), tuple(anns))
return _parselist(path, f, parseheader, finish)
+
+ at _xpickle.loader("EXT" + FORMAT)
+def extadvlist(path, f):
+ re_header = re.compile(r'^\[(\d\d) ([A-Z][a-z][a-z]) (\d{4})\] '
+ + r'([A-Z]+-\d+(?:-\d+)?)\s+'
+ + r'(.*?)\s*$')
+ def parseheader(line):
+ match = re_header.match(line)
+ if match is None:
+ return None
+ return match.groups()
+ def finish(header, headerlineno, anns, diag):
+ d, m, y, name, desc = header
+ _checkrelease(anns, diag, "EXT")
+ return Bug(path, Header(headerlineno, name, None), tuple(anns))
+ return _parselist(path, f, parseheader, finish)
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/8959f1b99ae05b206b922fd6eadac122b8b0b357
--
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/8959f1b99ae05b206b922fd6eadac122b8b0b357
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-security-tracker-commits/attachments/20211022/076f1057/attachment-0001.htm>
More information about the debian-security-tracker-commits
mailing list