diff options
author | Lukas Fleischer <lfleischer@archlinux.org> | 2015-09-13 14:45:15 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2015-09-16 22:05:40 +0200 |
commit | 34e7f7084ae30cd2cb50edfef5ff14f3a311e11a (patch) | |
tree | aff667d9608c4b58549e7114b3edaa8afa28c655 /scripts | |
parent | f9476c10930029ca7a44a14b5e1749d36512880c (diff) | |
download | aur-34e7f7084ae30cd2cb50edfef5ff14f3a311e11a.tar.gz aur-34e7f7084ae30cd2cb50edfef5ff14f3a311e11a.tar.xz |
Transfer notifications when merging packages
When a package base is merged into another one, followers of the old
package base usually want to be notified about comments the new package
base as well.
Fixes FS#27687.
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/notify.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/notify.py b/scripts/notify.py index 55b29110..f6bf6ffb 100755 --- a/scripts/notify.py +++ b/scripts/notify.py @@ -167,10 +167,9 @@ def delete(cur, uid, old_pkgbase_id, new_pkgbase_id=None): if new_pkgbase_id: new_pkgbase_uri = aur_location + '/pkgbase/' + new_pkgbase + '/' body = '%s [1] merged %s [2] into %s [3].\n\n' \ - 'You will no longer receive notifications about this ' \ - 'package, please go to [3] and click "%s" if you wish to ' \ - 'receive them again.' % \ - (user, old_pkgbase, new_pkgbase, 'Notify of new comments') + 'If you no longer wish receive notifications about the new ' \ + 'package, please go to [3] and click "%s".' %\ + (user, old_pkgbase, new_pkgbase, 'Disable notifications') body += '\n\n' body += '[1] ' + user_uri + '\n' body += '[2] ' + pkgbase_uri + '\n' |