mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-06 08:01:41 +00:00
add bug list to yaml
This commit is contained in:
parent
ab4de3b93c
commit
6a7aeac400
@ -1434,6 +1434,8 @@ class Britney(object):
|
|||||||
new_bugs = sorted(set(bugs_u).difference(bugs_t))
|
new_bugs = sorted(set(bugs_u).difference(bugs_t))
|
||||||
old_bugs = sorted(set(bugs_t).difference(bugs_u))
|
old_bugs = sorted(set(bugs_t).difference(bugs_u))
|
||||||
|
|
||||||
|
excuse.setbugs(old_bugs,new_bugs)
|
||||||
|
|
||||||
if len(new_bugs) > 0:
|
if len(new_bugs) > 0:
|
||||||
excuse.addhtml("%s (%s) <a href=\"http://bugs.debian.org/cgi-bin/pkgreport.cgi?" \
|
excuse.addhtml("%s (%s) <a href=\"http://bugs.debian.org/cgi-bin/pkgreport.cgi?" \
|
||||||
"which=pkg&data=%s&sev-inc=critical&sev-inc=grave&sev-inc=serious\" " \
|
"which=pkg&data=%s&sev-inc=critical&sev-inc=grave&sev-inc=serious\" " \
|
||||||
|
11
excuse.py
11
excuse.py
@ -56,6 +56,8 @@ class Excuse(object):
|
|||||||
self.sane_deps = []
|
self.sane_deps = []
|
||||||
self.break_deps = []
|
self.break_deps = []
|
||||||
self.bugs = []
|
self.bugs = []
|
||||||
|
self.newbugs = {}
|
||||||
|
self.oldbugs = {}
|
||||||
self.htmlline = []
|
self.htmlline = []
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@ -152,6 +154,13 @@ class Excuse(object):
|
|||||||
res = res + "</ul>\n"
|
res = res + "</ul>\n"
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
def setbugs(self, oldbugs, newbugs):
|
||||||
|
""""Set the list of old and new bugs"""
|
||||||
|
for bug in newbugs:
|
||||||
|
self.newbugs[bug] = 1
|
||||||
|
for bug in oldbugs:
|
||||||
|
self.oldbugs[bug] = 1
|
||||||
|
|
||||||
# TODO merge with html()
|
# TODO merge with html()
|
||||||
def text(self):
|
def text(self):
|
||||||
"""Render the excuse in text"""
|
"""Render the excuse in text"""
|
||||||
@ -203,5 +212,7 @@ class Excuse(object):
|
|||||||
excusedata["newversion"] = self.ver[1]
|
excusedata["newversion"] = self.ver[1]
|
||||||
excusedata["age"] = self.daysold
|
excusedata["age"] = self.daysold
|
||||||
excusedata["ageneeded"] = self.mindays
|
excusedata["ageneeded"] = self.mindays
|
||||||
|
excusedata["newbugs"] = self.newbugs.keys()
|
||||||
|
excusedata["oldbugs"] = self.oldbugs.keys()
|
||||||
return excusedata
|
return excusedata
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user