Merge lp:~wgrant/lp-ftbfs-report/include-bugs into lp:lp-ftbfs-report

Proposed by William Grant
Status: Merged
Merged at revision: 46
Proposed branch: lp:~wgrant/lp-ftbfs-report/include-bugs
Merge into: lp:lp-ftbfs-report
Diff against target: 58 lines (+16/-0)
2 files modified
source/build_status.html (+10/-0)
source/build_status.py (+6/-0)
To merge this branch: bzr merge lp:~wgrant/lp-ftbfs-report/include-bugs
Reviewer Review Type Date Requested Status
Michael Bienia Pending
Review via email: mp+78532@code.launchpad.net

Commit message

Show ftbfs bugs if they exist.

Description of the change

Show ftbfs bugs if they exist.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'source/build_status.html'
2--- source/build_status.html 2010-11-17 08:42:55 +0000
3+++ source/build_status.html 2011-10-07 03:28:22 +0000
4@@ -28,6 +28,7 @@
5 <col width="2%" />
6 <col width="11%" span="{{ arch_list|count }}" />
7 <col width="5%" />
8+ <col width="5%" />
9 </colgroup>
10 <thead>
11 <tr>
12@@ -37,6 +38,7 @@
13 onmouseout="UnTip()">Set?</th>
14 <th colspan="2" class="center">Main archive</th>
15 <th colspan="2" class="center">Ports archive</th>
16+ <th rowspan="2"/>Bugs</th>
17 <th rowspan="2"/>
18 </tr>
19 <tr>
20@@ -83,6 +85,14 @@
21 {%- endfor %}
22 {% if loop.first -%}
23 <td rowspan="{{ pkg.versions|count }}">
24+ {% for bug in pkg.tagged_bugs %}
25+ <a href="https://launchpad.net/bugs/{{ bug.id }}"
26+ title="{{ bug.title }}">
27+ {{ bug.id }}
28+ </a>
29+ {%- endfor %}
30+ </td>
31+ <td rowspan="{{ pkg.versions|count }}">
32 <a href="http://packages.qa.debian.org/{{ pkg.name }}">PTS</a>
33 <a href="http://bugs.debian.org/src:{{ pkg.name }}">BTS</a>
34 </td>
35
36=== modified file 'source/build_status.py'
37--- source/build_status.py 2011-03-27 12:15:44 +0000
38+++ source/build_status.py 2011-10-07 03:28:22 +0000
39@@ -32,6 +32,7 @@
40 lp_service = 'production'
41 api_version = '1.0'
42 default_arch_list = ('i386', 'amd64', 'armel', 'powerpc')
43+find_tagged_bugs = 'ftbfs'
44 apt_pkg.InitSystem()
45
46 # copied from ubuntu-dev-tools, libsupport.py:
47@@ -92,6 +93,11 @@
48 srcpkg.name = spph.source_package_name
49 srcpkg.url = 'https://launchpad.net/ubuntu/+source/%s' % srcpkg.name
50 srcpkg.versions = cls.VersionList()
51+ if find_tagged_bugs is None:
52+ srcpkg.tagged_bugs = []
53+ else:
54+ ts = ubuntu.getSourcePackage(name=srcpkg.name).searchTasks(tags=find_tagged_bugs)
55+ srcpkg.tagged_bugs = [t.bug for t in ts]
56 srcpkg.packagesets = set([ps for (ps, srcpkglist) in packagesets.items() if spph.source_package_name in srcpkglist])
57 components[spph.component_name].append(srcpkg)
58 for ps in srcpkg.packagesets:

Subscribers

People subscribed via source and target branches

to all changes: