extras-repoclosure rc-report.py,1.7,1.8

Michael Schwendt (mschwendt) fedora-extras-commits at redhat.com
Wed Jun 14 14:09:49 UTC 2006


Author: mschwendt

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

Modified Files:
	rc-report.py 
Log Message:
TODO: revisit and look whether we want no-broken-packages reports for all devel arch-repos


Index: rc-report.py
===================================================================
RCS file: /cvs/fedora/extras-repoclosure/rc-report.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- rc-report.py	14 Jun 2006 13:59:27 -0000	1.7
+++ rc-report.py	14 Jun 2006 14:09:46 -0000	1.8
@@ -315,16 +315,12 @@
 repos = summary.keys()
 repos.sort()
 for repoid in repos:
-    count = 0
     summail += ('Summary of broken packages in %s:\n' % repoid) + '-'*70+'\n'
     pkgs = summary[repoid].keys()
     pkgs.sort()
     for pkg in pkgs:
         for dep in summary[repoid][pkg]:
             summail += ( '    %s  requires  %s\n' % (pkg,dep) )
-        count += 1
-    if not count:
-        summail += 'None\n'
     summail += '\n'
 
 if domail:
@@ -350,6 +346,8 @@
         mailsplit( srv, fromaddr, toaddr, replytoaddr, subject, mailtext )
 
 if domail and mailsummary and (len(summail) or subject.find('development') >= 0):  # avoid sending empty reports for stable/old branches
+    if not len(summail):
+        summail = 'no broken packages'
     toaddr = replytoaddr  # mail summary to list
     mailsplit( srv, fromaddr, toaddr, '', ('Summary - %s' % subject), summail )
 




More information about the fedora-extras-commits mailing list