extras-repoclosure rc-report.py,1.41,1.42 rc-run.py,1.24,1.25

Michael Schwendt (mschwendt) fedora-extras-commits at redhat.com
Wed Mar 7 11:57:52 UTC 2007


Author: mschwendt

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

Modified Files:
	rc-report.py rc-run.py 
Log Message:
Add a warning when unreleased packages are included in the tests.


Index: rc-report.py
===================================================================
RCS file: /cvs/fedora/extras-repoclosure/rc-report.py,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- rc-report.py	27 Feb 2007 19:42:01 -0000	1.41
+++ rc-report.py	7 Mar 2007 11:57:50 -0000	1.42
@@ -121,7 +121,7 @@
 # ====================================================================
 
 try:
-    opts, args = getopt.getopt(sys.argv[1:], "", ["mail="])
+    opts, args = getopt.getopt(sys.argv[1:], "", ["mail=","needsign"])
     if len(args) < 2:
         raise getopt.GetoptError
 except getopt.GetoptError:
@@ -130,12 +130,15 @@
 
 mailowners = False
 mailsummary = False
+withneedsign = False
 for o, a in opts:
     if o == "--mail":
         if a == "owners":
             mailowners = True
         if a == "summary":
             mailsummary = True
+    if o == "--needsign":
+        withneedsign = True
 
 domail = (mailowners or mailsummary)
 
@@ -277,6 +280,10 @@
         reportssummary += sep
     # Send mail to every package owner with broken package dependencies.
     mailtext = 'This is an automated mail created by an experimental script.\nYour following packages in the repository contain broken dependencies:\n\n'
+    if withneedsign:
+        mailtext += sep
+        mailtext += "The results in this report consider unreleased updates in the\nbuild-system's needsign-queue!\n"
+        mailtext += sep+'\n'
     mailtext += body
     if mailowners and toaddr!='UNKNOWN OWNER':
         mailsplit( srv, fromaddr, toaddr, replytoaddr, mailsubject, mailtext )


Index: rc-run.py
===================================================================
RCS file: /cvs/fedora/extras-repoclosure/rc-run.py,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- rc-run.py	27 Feb 2007 00:42:14 -0000	1.24
+++ rc-run.py	7 Mar 2007 11:57:50 -0000	1.25
@@ -87,6 +87,7 @@
             reportcmd += " --mail=summary"
     if o == "--needsign":
         rs.AddRepo('fedora-extras-needsign','Fedora Extras Needsign',a)
+        reportcmd += " --needsign"
 
 if sys.argv[0].endswith('rc-run-all.py'): # process all releases
     combinedreport = True




More information about the fedora-extras-commits mailing list