[Mageia-sysadm] [726] add an option to not send commits from some authors to cia

root at mageia.org root at mageia.org
Sat Jan 8 15:37:49 CET 2011


Revision: 726
Author:   boklm
Date:     2011-01-08 15:37:48 +0100 (Sat, 08 Jan 2011)
Log Message:
-----------
add an option to not send commits from some authors to cia

Modified Paths:
--------------
    puppet/modules/subversion/manifests/init.pp
    puppet/modules/subversion/templates/ciabot_svn.sh

Modified: puppet/modules/subversion/manifests/init.pp
===================================================================
--- puppet/modules/subversion/manifests/init.pp	2011-01-08 10:32:00 UTC (rev 725)
+++ puppet/modules/subversion/manifests/init.pp	2011-01-08 14:37:48 UTC (rev 726)
@@ -126,6 +126,7 @@
                        $commit_mail = '',
                        $cia_post = true,
                        $cia_module = 'default',
+		       $cia_ignore_author = '',
 		       $no_binary = false,
                        $syntax_check1 = '',
                        $syntax_check2 = '',

Modified: puppet/modules/subversion/templates/ciabot_svn.sh
===================================================================
--- puppet/modules/subversion/templates/ciabot_svn.sh	2011-01-08 10:32:00 UTC (rev 725)
+++ puppet/modules/subversion/templates/ciabot_svn.sh	2011-01-08 14:37:48 UTC (rev 726)
@@ -66,6 +66,7 @@
 project_name="Mageia"
 module_name="<%= cia_module %>"
 return_address="root@<%= domain %>"
+ignore_author="<%= cia_ignore_author %>"
 
 # System
 sendmail_command="/usr/sbin/sendmail -t"
@@ -80,6 +81,10 @@
 cia_address="cia at cia.navi.cx"
 
 author=`svnlook author -r "$REV" "$REPOS" | sed 's/\&/\&amp;/g;s/</\&lt;/g;s/>/\&gt;/g'`
+if test -n "$ignore_author" && echo "$author" | grep -q "$ignore_author"
+then
+    exit 0
+fi
 log=`svnlook log -r "$REV" "$REPOS" | sed 's/\&/\&amp;/g;s/</\&lt;/g;s/>/\&gt;/g'`
 diff_lines=`svnlook diff -r "$REV" "$REPOS" | wc -l`
 for file in `svnlook changed -r "$REV" "$REPOS" | cut -c 3- | sed 's/\&/\&amp;/g;s/</\&lt;/g;s/>/\&gt;/g'`; do
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110108/7af6c065/attachment.html>


More information about the Mageia-sysadm mailing list