Merge lp:~brian-murray/ubuntu-archive-tools/mir-bug-creation-improvements into lp:ubuntu-archive-tools

Proposed by Brian Murray
Status: Merged
Merged at revision: 1005
Proposed branch: lp:~brian-murray/ubuntu-archive-tools/mir-bug-creation-improvements
Merge into: lp:ubuntu-archive-tools
Diff against target: 55 lines (+10/-7)
1 file modified
component-mismatches (+10/-7)
To merge this branch: bzr merge lp:~brian-murray/ubuntu-archive-tools/mir-bug-creation-improvements
Reviewer Review Type Date Requested Status
Ubuntu Package Archive Administrators Pending
Review via email: mp+290380@code.launchpad.net

Description of the change

We could also set field.assignee when creating the bug, although its possible for a team to only use a package subscribing team for bug mail only (e.g. foundations-bugs) so they might not notice a bug being assigned to them. Subsequently, it might be best to force the MIR bug creator to pick a team. Having said that I'm willing to add in field.assignee.

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 'component-mismatches'
2--- component-mismatches 2016-02-05 10:22:35 +0000
3+++ component-mismatches 2016-03-29 23:29:35 +0000
4@@ -331,7 +331,7 @@
5 return output
6
7
8-def do_dot(why, fd, mir_bugs):
9+def do_dot(why, fd, mir_bugs, suite):
10 # write dot graph for given why dictionary
11
12 written_nodes = set()
13@@ -397,9 +397,10 @@
14 else:
15 fc = "white"
16 url = ("https://launchpad.net/ubuntu/+source/%s/+filebug?"
17- "field.title=%s" %
18- (name, quote_plus("[MIR] %s" % name)))
19-
20+ "field.title=%s&field.status=Incomplete"
21+ "&field.tags=%s" %
22+ (quote_plus(name), quote_plus("[MIR] %s" % name),
23+ quote_plus(suite)))
24 fd.write(' fillcolor="%s"' % fc)
25 if url:
26 fd.write(' URL="%s"' % url)
27@@ -674,7 +675,7 @@
28
29 if options.dot:
30 with open(options.dot, 'w') as f:
31- do_dot(both, f, mir_bugs)
32+ do_dot(both, f, mir_bugs, options.suite)
33
34 # Removals
35
36@@ -836,6 +837,10 @@
37 '--germinate-path',
38 default=os.path.expanduser('~/mirror/ubuntu-germinate/'),
39 help='read Germinate output from this directory')
40+ parser.add_option(
41+ '--archive-dir',
42+ default=os.path.expanduser('~/mirror/ubuntu/'),
43+ help='use Ubuntu archive located in this directory')
44 options, args = parser.parse_args()
45
46 options.launchpad = Launchpad.login_anonymously(
47@@ -843,8 +848,6 @@
48 options.distro = options.launchpad.distributions['ubuntu']
49 options.archive = options.distro.getArchive(name='primary')
50
51- options.archive_dir = os.path.expanduser('~/mirror/ubuntu/')
52-
53 options.component = "main,restricted"
54 options.components = options.component.split(',')
55 options.all_components = ["main", "restricted", "universe", "multiverse"]

Subscribers

People subscribed via source and target branches