summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbertagaz <bertagaz@ptitcanardnoir.org>2017-09-19 12:26:51 +0200
committerbertagaz <bertagaz@ptitcanardnoir.org>2017-09-19 12:26:51 +0200
commit78a96ebae911a553aa1f0869e9752e2f4f37a98c (patch)
tree78dde495cef5d01bdd804cc9b0f0c098513ab825
parent47792efcd995bbc1804ac9ee9df7abbd9fac4e5d (diff)
Also notify the uploader on new package arriving on apt.lizard.feature/5894-reprepro-notify-incoming-changes
Refs: #5894
-rw-r--r--files/reprepro/custom/notify-incoming/reprepro-notify-incoming-changes3
1 files changed, 2 insertions, 1 deletions
diff --git a/files/reprepro/custom/notify-incoming/reprepro-notify-incoming-changes b/files/reprepro/custom/notify-incoming/reprepro-notify-incoming-changes
index 2b3a23a..e8446e4 100644
--- a/files/reprepro/custom/notify-incoming/reprepro-notify-incoming-changes
+++ b/files/reprepro/custom/notify-incoming/reprepro-notify-incoming-changes
@@ -26,7 +26,8 @@ fi
HOSTNAME=$(/bin/hostname --fqdn)
SUBJECT="Notification of incoming .changes file on $HOSTNAME"
CHANGES_CONTENT="$(cat ${CHANGES_FILE})"
+UPLOADER="$(cat ${CHANGES_FILE} | sed -nr 's/Changed-By:\ .*<(.*)>/\1/p')"
-printf 'From: %s\nTo: %s\nSubject: %s\n%s' "$MAILFROM" "$MAILTO" "$SUBJECT" "$CHANGES_CONTENT" | /usr/sbin/sendmail -t
+printf 'From: %s\nTo: %s\nCc: %s\nSubject: %s\n%s' "$MAILFROM" "$MAILTO" "$UPLOADER" "$SUBJECT" "$CHANGES_CONTENT" | /usr/sbin/sendmail -t
printf 'Incoming change detected: %s\n' "$CHANGES_FILE"