[Zope-CVS] CVS: RepoUtils - postcommit.py:2.4

Ken Manheimer klm at zope.com
Sat Dec 13 14:07:58 EST 2003


Update of /cvs-repository/RepoUtils
In directory cvs.zope.org:/tmp/cvs-serv7430

Modified Files:
	postcommit.py 
Log Message:
do_special() was abusing send_mail().


=== RepoUtils/postcommit.py 2.3 => 2.4 ===
--- RepoUtils/postcommit.py:2.3	Sat Dec 13 13:32:08 2003
+++ RepoUtils/postcommit.py	Sat Dec 13 14:07:58 2003
@@ -212,7 +212,7 @@
             for trigger, action in specials:
                 if trigger in subj_names:
                     do_special(trigger, action, addrs,
-                               dryrun=dryrun)
+                               dryrun=dryrun, official_sender=cvsmaster)
 
         VERBOSE = wasVerbose
 
@@ -423,7 +423,7 @@
         lines.insert(0, header + "\n")
         return string.join(lines, '')
 
-def do_special(trigger, action, addrs, dryrun=0):
+def do_special(trigger, action, addrs, dryrun=0, official_sender=""):
     """Do special action - a script, to be invoked from the CVSROOT dir.
 
     Run it with the version info and send the result to indicated addrs."""
@@ -440,7 +440,8 @@
                      result, action_cmd, output)
     else:
         subject = "CVS: %s run for %s changes" % (action, trigger)
-        send_mail(addrs, output, subject, dryrun=dryrun)
+        send_mail(addrs, output, subject,
+                  official_sender=official_sender, dryrun=dryrun)
         complain("%s\n%s\n", subject, output)
 
 def send_mail(addrs, text, subject, official_sender, dryrun=0):




More information about the Zope-CVS mailing list