extras-buildsys/utils extras-push-new,1.44,1.45

Ville Skytta (scop) fedora-extras-commits at redhat.com
Sun Jul 16 20:46:32 UTC 2006


Author: scop

Update of /cvs/fedora/extras-buildsys/utils
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv31799

Modified Files:
	extras-push-new 
Log Message:
Make email_list() self-contained wrt. empty mail checks and avoidance of "0 packages pushed for X" in them.


Index: extras-push-new
===================================================================
RCS file: /cvs/fedora/extras-buildsys/utils/extras-push-new,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- extras-push-new	12 Jul 2006 22:24:27 -0000	1.44
+++ extras-push-new	16 Jul 2006 20:46:29 -0000	1.45
@@ -614,12 +614,18 @@
             continue
         uniqued = rpmUtils.miscutils.unique( getlinesfromrunfile(dist) )
         uniqued.sort()
+        if not uniqued:
+            continue
     
         body += "\nPackages built and released for %s %s: %s \n\n" % (project_hr, dist, len(uniqued))
         for pkg in uniqued:
             add = '    %s\n' % (pkg)
             body += add
         body += '\n'
+
+    if not body:
+        return
+
     body += mail_footer
     
     msg = MIMEText(body)




More information about the scm-commits mailing list