From fb686cdd364a21b4b7a3dccba4f2b3737e354dc5 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Tue, 21 Jun 2011 16:18:24 +0000 Subject: send mail when package is moved --- mga-move-update | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mga-move-update') diff --git a/mga-move-update b/mga-move-update index 3d5e3d9..73a009b 100644 --- a/mga-move-update +++ b/mga-move-update @@ -60,5 +60,11 @@ do movepkg "$distribdir/$distrorelease/$arch/media/debug/$section/updates_testing" "$distribdir/$distrorelease/$arch/media/debug/$section/updates/" "$srcpkg" "$mailcontent" done +if [ -z $dryrun ] +then + cat "$mailcontent" +else + /usr/bin/mail -s "mga-move-update $distrorelease $section $srcname" -S "from=moveupdate_mailfrom" "$moveupdate_mailto" < "$mailcontent" +fi rm -f "$mailcontent" -- cgit v1.2.1