Merge lp:~brian-murray/ubuntu-archive-tools/fix-max-pup into lp:ubuntu-archive-tools

Proposed by Brian Murray on 2015-02-27
Status: Merged
Merged at revision: 939
Proposed branch: lp:~brian-murray/ubuntu-archive-tools/fix-max-pup
Merge into: lp:ubuntu-archive-tools
Diff against target: 11 lines (+1/-0)
1 file modified
phased-updater (+1/-0)
To merge this branch: bzr merge lp:~brian-murray/ubuntu-archive-tools/fix-max-pup
Reviewer Review Type Date Requested Status
Ubuntu Package Archive Administrators 2015-02-27 Pending
Review via email: mp+251282@code.launchpad.net

Description of the Change

Fix this:

Traceback (most recent call last):
  File "/home/ubuntu-archive/ubuntu-archive-tools/phased-updater", line 641, in <module>
    main()
  File "/home/ubuntu-archive/ubuntu-archive-tools/phased-updater", line 562, in main
    if max_pup and last_pup == 0:
UnboundLocalError: local variable 'max_pup' referenced before assignment

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 2015-01-30 18:32:27 +0000
3+++ phased-updater 2015-02-27 16:12:50 +0000
4@@ -551,6 +551,7 @@
5 last_pup = pbs[0].phased_update_percentage
6 else:
7 last_pup = None
8+ max_pup = None
9 if last_pup == 0:
10 for allpb in archive.getPublishedBinaries(
11 exact_match=True, pocket='Updates',

Subscribers

People subscribed via source and target branches