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
=== modified file 'phased-updater'
--- phased-updater 2013-08-07 11:27:43 +0000
+++ phased-updater 2013-08-07 16:28:36 +0000
@@ -229,6 +229,10 @@
229 for release in releases:229 for release in releases:
230 rname = release.name230 rname = release.name
231 for spph in spph_buckets[rname]:231 for spph in spph_buckets[rname]:
232 update_percentage = spph_buckets[rname][spph].get('pup', 100)
233 # never send emails about updates that are fully phased
234 if update_percentage == 100:
235 continue
232 signer = spph.package_signer236 signer = spph.package_signer
233 # not an active user of Launchpad237 # not an active user of Launchpad
234 if not signer.is_valid:238 if not signer.is_valid:

Subscribers

People subscribed via source and target branches