Merge lp:~brian-murray/ubuntu-archive-tools/phased-update-percentage into lp:ubuntu-archive-tools

Proposed by Brian Murray
Status: Merged
Merged at revision: 726
Proposed branch: lp:~brian-murray/ubuntu-archive-tools/phased-update-percentage
Merge into: lp:ubuntu-archive-tools
Diff against target: 33 lines (+10/-3)
1 file modified
change-override (+10/-3)
To merge this branch: bzr merge lp:~brian-murray/ubuntu-archive-tools/phased-update-percentage
Reviewer Review Type Date Requested Status
Colin Watson Approve
Review via email: mp+167871@code.launchpad.net

Description of the change

Add support for the new_phased_update_percentage option.

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'change-override'
2--- change-override 2013-05-30 07:49:22 +0000
3+++ change-override 2013-06-06 23:47:24 +0000
4@@ -62,6 +62,9 @@
5 if options.priority:
6 print("Override priority to %s" % options.priority)
7 binary_kwargs["new_priority"] = options.priority
8+ if options.percentage:
9+ print("Override percentage to %s" % options.percentage)
10+ binary_kwargs["new_phased_update_percentage"] = options.percentage
11
12 publications = []
13 for pubtype, publication in find_publications(options, packages):
14@@ -154,12 +157,16 @@
15 parser.add_option(
16 "-x", "--section",
17 metavar="SECTION", help="move package to SECTION")
18+ parser.add_option(
19+ "-z", "--percentage", type="int",
20+ metavar="PERCENTAGE", help="set phased update percentage")
21 options, args = parser.parse_args()
22
23- if not options.component and not options.section and not options.priority:
24+ if (not options.component and not options.section and not options.priority
25+ and not options.percentage):
26 parser.error(
27- "You must override at least one of component, section, and "
28- "priority.")
29+ "You must override at least one of component, section, "
30+ "priority, and percentage.")
31
32 options.launchpad = Launchpad.login_with(
33 "change-override", options.launchpad_instance, version="devel")

Subscribers

People subscribed via source and target branches