launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #21149
Re: [Merge] lp:~cjwatson/launchpad/notify-changed-by-field into lp:launchpad
Review: Approve code
Diff comments:
> === modified file 'lib/lp/soyuz/mail/packageupload.py'
> --- lib/lp/soyuz/mail/packageupload.py 2015-09-02 12:05:15 +0000
> +++ lib/lp/soyuz/mail/packageupload.py 2016-10-16 13:55:46 +0000
> @@ -338,6 +342,17 @@
> add_recipient(
> recipients, permission.person,
> PackageUploadRecipientReason.forPPAUploader, logger=logger)
> +
> + # If the "Launchpad-Notify-Changed-By: yes" field is set in the
> + # .changes file, we also consider changed-by. The latter is
> + # intended for use by systems that automatically sign uploads on
> + # behalf of developers, in which case we want to make sure to
> + # notify the developer in question.
I think the key point is this: unlike normal PPA users, we assume that a system that is clever enough to set Launchpad-Notify-Changed-By is probably also clever enough to not be unthinkingly uploading things with misleading Changed-Bys.
> + if info['notify_changed_by']:
> + debug(logger, "Adding changed-by to recipients")
> + add_recipient(
> + recipients, changer,
> + PackageUploadRecipientReason.forChangedBy, logger=logger)
> elif archive.is_copy:
> # For copy archives, notifying anyone else will probably only
> # confuse them.
--
https://code.launchpad.net/~cjwatson/launchpad/notify-changed-by-field/+merge/308587
Your team Launchpad code reviewers is subscribed to branch lp:launchpad.
References