aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/cvetools.py')
-rw-r--r--lib/python/cvetools.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/python/cvetools.py b/lib/python/cvetools.py
index 7e5dc5c..d7d35e0 100644
--- a/lib/python/cvetools.py
+++ b/lib/python/cvetools.py
@@ -64,8 +64,8 @@ class CVEData:
return {}
SAs = []
names = {}
- for url in refs:
- if url.startswith("http://secunia.com/advisories/") or url.startswith("http://www.secunia.com/advisories/"):
+ for source, url in refs:
+ if source == u"SECUNIA" or url.startswith("http://secunia.com/advisories/") or url.startswith("http://www.secunia.com/advisories/"):
SAs.append(re.sub(r".*advisories/(\d+)", r"\1", url))
import urllib2
@@ -221,7 +221,7 @@ class BugReporter:
password = password,
forget = False)
- def post_bug(self, title, description, component="", whiteboard=""):
+ def post_bug(self, title, description, component="", whiteboard="", url=""):
""" Posts a security bug, returning the Bug number or 0 """
bugno = 0
ccs = assign.get_cc_from_string(title)
@@ -230,11 +230,11 @@ class BugReporter:
severity = 'normal'
try:
try:
- bugno = self.bugz_auth.post(title = title, description = description, cc = ccs)
+ bugno = self.bugz_auth.post(title = title, description = description, cc = ccs, url = url)
print "Ignoring Bug component, please upgrade pybugz."
except TypeError:
# pybugz since 0.7.4 requires to specify product and component
- bugno = self.bugz_auth.post(title = title, product="Gentoo Security", component=component, description = description, cc = ccs)
+ bugno = self.bugz_auth.post(title = title, product="Gentoo Security", component=component, description = description, cc = ccs, url = url)
except Exception, e:
print "An error occurred posting a bug: %s" % (e)