[Secure-testing-commits] r13767 - bin
Raphael Geissert
geissert at alioth.debian.org
Fri Jan 8 21:15:44 UTC 2010
Author: geissert
Date: 2010-01-08 21:15:44 +0000 (Fri, 08 Jan 2010)
New Revision: 13767
Modified:
bin/tracker_service.py
Log:
Add a link to RedHat's bugzilla to the web CVE page
Modified: bin/tracker_service.py
===================================================================
--- bin/tracker_service.py 2010-01-08 20:59:56 UTC (rev 13766)
+++ bin/tracker_service.py 2010-01-08 21:15:44 UTC (rev 13767)
@@ -284,9 +284,12 @@
source = bug.name.split('-')[0]
if source == 'CVE':
source_xref = compose(self.make_cve_ref(url, bug.name, 'CVE'),
- " (",
+ " (at ",
self.make_nvd_ref(url, bug.name,
- 'in NVD'),
+ 'NVD'),
+ "; ",
+ self.make_rhbug_ref(url, bug.name,
+ 'RH'),
")")
elif source == 'DSA':
source_xref = self.make_dsa_ref(url, bug.name, 'Debian')
@@ -1155,6 +1158,9 @@
def url_nvd(self, url, name):
return url.absolute("http://web.nvd.nist.gov/view/vuln/detail",
vulnId=name)
+ def url_rhbug(self, url, name):
+ return url.absolute("https://bugzilla.redhat.com/show_bug.cgi",
+ id=name)
def url_dsa(self, url, dsa, re_dsa=re.compile(r'^DSA-(\d+)(?:-\d+)?$')):
match = re_dsa.match(dsa)
@@ -1211,6 +1217,11 @@
if name is None:
name = cve
return A(self.url_nvd(url, cve), name)
+
+ def make_rhbug_ref(self, url, cve, name=None):
+ if name is None:
+ name = cve
+ return A(self.url_rhbug(url, cve), name)
def make_dsa_ref(self, url, dsa, name=None):
if name is None:
More information about the Secure-testing-commits
mailing list