commit ce0de2f5325d7b434232c38e8a5a90a9af9c0b21
Author: Kacper Kornet <[email protected]>
Date: Wed Jan 30 14:58:07 2013 +0000
adc: Send notifications about moving and copying of packages
adc/move | 11 +++++++++++
1 file changed, 11 insertions(+)
---
diff --git a/adc/move b/adc/move
index 51953e1..f2dc75a 100755
--- a/adc/move
+++ b/adc/move
@@ -41,3 +41,14 @@ $cmd "$move_from_full/description" "$move_to_full"
upstream=$(echo $move_to | tr + -)
git --git-dir="$move_to_full" push --mirror
ssh://[email protected]/pld-linux/$upstream
+
+mailinglist=$(git config hooks.mailinglist)
+if [ -n "$mailinglist" ]; then
+ /usr/sbin/sendmail -t <<EOF
+From: [email protected]
+To: $mailinglist
+Subject: [$PROG command] packages/$move_from -> packages/$move_to
+Reply-To: $(git config hooks.replyto)
+
+EOF
+fi
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/git-slug.git/commitdiff/4ed64f73960519a2f4fd04c42950b2c96ae795c5
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit