Merge lp:~brian-murray/ubuntu-archive-tools/phased-updater-traceback into lp:ubuntu-archive-tools

Proposed by Brian Murray
Status: Merged
Merged at revision: 819
Proposed branch: lp:~brian-murray/ubuntu-archive-tools/phased-updater-traceback
Merge into: lp:ubuntu-archive-tools
Diff against target: 15 lines (+3/-2)
1 file modified
phased-updater (+3/-2)
To merge this branch: bzr merge lp:~brian-murray/ubuntu-archive-tools/phased-updater-traceback
Reviewer Review Type Date Requested Status
Ubuntu Package Archive Administrators Pending
Review via email: mp+210477@code.launchpad.net

Description of the change

The phased updater sometimes receives a Traceback this fixes that.

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 'phased-updater'
2--- phased-updater 2014-02-27 23:50:32 +0000
3+++ phased-updater 2014-03-11 19:11:40 +0000
4@@ -560,8 +560,9 @@
5 elif pbs:
6 # there is an error and pup is not None so stop the phasing
7 current_pup = issues[rname][pub_source]['pup']
8- issues[rname][pub_source]['previous_pup'] = \
9- issues[rname][pub_source]['max_pup']
10+ if 'max_pup' in issues[rname][pub_source]:
11+ issues[rname][pub_source]['previous_pup'] = \
12+ issues[rname][pub_source]['max_pup']
13 new_pup = 0
14 if (not options.no_act and
15 issues[rname][pub_source]['pup'] != 0):

Subscribers

People subscribed via source and target branches