summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFlorian Weimer <fw@deneb.enyo.de>2005-10-20 13:52:01 +0000
committerFlorian Weimer <fw@deneb.enyo.de>2005-10-20 13:52:01 +0000
commit2b8cb95fd7d9f368ef8fab85d546b7df28247e6f (patch)
tree30e1017af04e692d432a53fe1630627c9d996e03 /lib
parentd8d18659b951f1310acfac93961a13e454946f60 (diff)
lib/python/nvd.py (_Parser.endElement):
Tempoarily normalize CAN to CVE. git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@2512 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'lib')
-rw-r--r--lib/python/nvd.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/python/nvd.py b/lib/python/nvd.py
index 9c3222deac..0089d0fa12 100644
--- a/lib/python/nvd.py
+++ b/lib/python/nvd.py
@@ -77,7 +77,11 @@ class _Parser(xml.sax.handler.ContentHandler):
def endElement(self, name):
if name == 'entry':
- self.result.append((self.name,
+ # FIXME: normalize CAN to CVE. Should go away soon.
+ name = self.name
+ if name[0:4] == 'CAN-':
+ name = 'CVE-' + name[4:]
+ self.result.append((name,
self.discovered,
self.published,
self.severity,

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