Merge lp:~brian-murray/ubuntu-archive-tools/pu-no-email into lp:ubuntu-archive-tools

Proposed by Brian Murray
Status: Merged
Merged at revision: 766
Proposed branch: lp:~brian-murray/ubuntu-archive-tools/pu-no-email
Merge into: lp:ubuntu-archive-tools
Diff against target: 14 lines (+4/-0)
1 file modified
phased-updater (+4/-0)
To merge this branch: bzr merge lp:~brian-murray/ubuntu-archive-tools/pu-no-email
Reviewer Review Type Date Requested Status
Colin Watson Approve
Review via email: mp+179013@code.launchpad.net

Description of the change

This prevents emails from being sent for updates that are fully phased.

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 'phased-updater'
2--- phased-updater 2013-08-07 11:27:43 +0000
3+++ phased-updater 2013-08-07 16:28:36 +0000
4@@ -229,6 +229,10 @@
5 for release in releases:
6 rname = release.name
7 for spph in spph_buckets[rname]:
8+ update_percentage = spph_buckets[rname][spph].get('pup', 100)
9+ # never send emails about updates that are fully phased
10+ if update_percentage == 100:
11+ continue
12 signer = spph.package_signer
13 # not an active user of Launchpad
14 if not signer.is_valid:

Subscribers

People subscribed via source and target branches