extras-repoclosure rc-report.py,1.3,1.4

Michael Schwendt (mschwendt) fedora-extras-commits at redhat.com
Wed Jun 14 11:12:46 UTC 2006


Author: mschwendt

Update of /cvs/fedora/extras-repoclosure
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6377

Modified Files:
	rc-report.py 
Log Message:
reducing the spam - we don't want empty reports for stable branches


Index: rc-report.py
===================================================================
RCS file: /cvs/fedora/extras-repoclosure/rc-report.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- rc-report.py	14 Jun 2006 10:57:49 -0000	1.3
+++ rc-report.py	14 Jun 2006 11:12:41 -0000	1.4
@@ -298,10 +298,10 @@
 if savehistory:
     history.Save()
 
-summail += ('Summary of broken packages (by owner):\n') + '-'*70+'\n'
 owners = pkgbyowner.keys()
 owners.sort()
-count = 0
+if len(owners):
+    summail += ('Summary of broken packages (by owner):\n') + '-'*70+'\n'
 for owner in owners:
     summail += '    '+owner.replace('@',' AT ')+'\n'
     pkgs = pkgbyowner[owner]
@@ -309,10 +309,8 @@
     for pkg in pkgs:
         summail += '        '+pkg+'\n'
     summail += '\n'
-    count += 1
-if not count:
-    summail += 'None\n'
-summail += '\n'
+if len(owners):
+    summail += '\n'
 
 repos = summary.keys()
 repos.sort()
@@ -352,6 +350,8 @@
         mailsplit( srv, fromaddr, toaddr, replytoaddr, subject, mailtext )
 
 if domail and mailsummary:
+    if subject.find('development') < 0:
+        continue  # avoid sending empty reports for stable/old branches
     toaddr = replytoaddr  # mail summary to list
     mailsplit( srv, fromaddr, toaddr, '', ('Summary - %s' % subject), summail )
 




More information about the fedora-extras-commits mailing list