extras-repoclosure rc-report.py,1.44,1.45

Michael Schwendt (mschwendt) fedora-extras-commits at redhat.com
Fri Jun 15 13:26:07 UTC 2007


Author: mschwendt

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

Modified Files:
	rc-report.py 
Log Message:
commit the F>=7 and updates-testing switches


Index: rc-report.py
===================================================================
RCS file: /cvs/fedora/extras-repoclosure/rc-report.py,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- rc-report.py	26 Apr 2007 16:27:34 -0000	1.44
+++ rc-report.py	15 Jun 2007 13:26:04 -0000	1.45
@@ -23,7 +23,7 @@
 
 fromaddr = 'Fedora Extras repoclosure <buildsys at fedoraproject.org>'
 replytoaddr = 'fedora-devel-list at redhat.com'
-subject = 'Broken dependencies in Fedora Extras'
+subject = 'Broken dependencies in Fedora'
 
 mailserver = 'localhost'
 mailuser = ''
@@ -122,7 +122,7 @@
 # ====================================================================
 
 try:
-    opts, args = getopt.getopt(sys.argv[1:], "", ["mail=","needsign"])
+    opts, args = getopt.getopt(sys.argv[1:], "", ["mail=","needsign","testing"])
     if len(args) < 2:
         raise getopt.GetoptError('not enough arguments')
 except getopt.GetoptError:
@@ -132,14 +132,17 @@
 mailowners = False
 mailsummary = False
 withneedsign = False
+withtesting = False
 for o, a in opts:
     if o == "--mail":
         if a == "owners":
             mailowners = True
         if a == "summary":
             mailsummary = True
-    if o == "--needsign":
+    elif o == "--needsign":
         withneedsign = True
+    elif o == "--testing":
+        withtesting = True
 
 domail = (mailowners or mailsummary)
 
@@ -166,7 +169,10 @@
         datestring = today
 
     if not combinedreport:
-        mailsubject = subject + ' ' + release + ' - ' + datestring
+        if withtesting:
+            mailsubject = subject + ' ' + release + ' + Test Updates - ' + datestring
+        else:
+            mailsubject = subject + ' ' + release + ' - ' + datestring
     else:
         mailsubject = subject + ' - ' + datestring
         
@@ -197,7 +203,12 @@
             w = line.rstrip().split(' ')
             repoid = w[5]
             # Only report broken packages in Fedora Extras.
-            if ( repoid.find('extras') < 0 ):
+            needle = 'extras'
+            if ( release=='7' ):
+                needle = 'fedora'
+            elif ( release=='development'):
+                needle = 'rawhide'
+            if ( repoid.find(needle) < 0 ):
                 inbody = False
                 continue
 
@@ -274,6 +285,16 @@
             reports.setdefault(toaddr,[None,''])
             reports[toaddr][1] += r
 
+if withneedsign:
+    reportssummary += sep
+    reportssummary += "The results in this summary consider unreleased updates in the\nbuild-system's needsign-queue!\n"
+    reportssummary += sep
+
+if withtesting:
+    reportssummary += sep
+    reportssummary += "The results in this summary consider Test Updates!\n"
+    reportssummary += sep
+
 # Mail reports and construct summary of new reports.
 for toaddr,(new,body) in reports.iteritems():
     if new:  # Include new reports in summary.




More information about the fedora-extras-commits mailing list