diff options
author | Lukas Fleischer <lfleischer@archlinux.org> | 2015-08-31 18:29:06 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2015-09-11 22:14:26 +0200 |
commit | 396e50bdc88feae9d0048d1c3dab776388d96dc7 (patch) | |
tree | 27ba246621007f32e13cf1ad4bdcea756d93ef6d /scripts | |
parent | 6b7e26a2d19c53438a9594ee3068f1afcdb1ee0d (diff) | |
download | aur-396e50bdc88feae9d0048d1c3dab776388d96dc7.tar.gz aur-396e50bdc88feae9d0048d1c3dab776388d96dc7.tar.xz |
Require comments when flagging packages out-of-date
Implements FS#42827.
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/notify.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/notify.py b/scripts/notify.py index 8be3a701..55b29110 100755 --- a/scripts/notify.py +++ b/scripts/notify.py @@ -139,14 +139,15 @@ def flag(cur, uid, pkgbase_id): user = username_from_id(cur, uid) pkgbase = pkgbase_from_id(cur, pkgbase_id) to = [get_maintainer_email(cur, pkgbase_id)] + text = sys.stdin.read() user_uri = aur_location + '/account/' + user + '/' pkgbase_uri = aur_location + '/pkgbase/' + pkgbase + '/' subject = 'AUR Out-of-date Notification for %s' % (pkgbase) - body = 'Your package %s [1] has been flagged out-of-date by %s [2]. ' % \ + body = 'Your package %s [1] has been flagged out-of-date by %s [2]:' % \ (pkgbase, user) - body += '\n\n' + body += '\n\n' + text + '\n\n' body += '[1] ' + pkgbase_uri + '\n' body += '[2] ' + user_uri |