extras-repoclosure rc-report.py,1.54,1.55

Michael Schwendt mschwendt at fedoraproject.org
Thu Oct 23 21:55:04 UTC 2008


Author: mschwendt

Update of /cvs/fedora/extras-repoclosure
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv6214

Modified Files:
	rc-report.py 
Log Message:
added option -s/--summary for overriding summary mail subject - else it could only be set in config file


Index: rc-report.py
===================================================================
RCS file: /cvs/fedora/extras-repoclosure/rc-report.py,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -r1.54 -r1.55
--- rc-report.py	14 Oct 2008 20:07:52 -0000	1.54
+++ rc-report.py	23 Oct 2008 21:55:03 -0000	1.55
@@ -187,6 +187,9 @@
                   help="a keyword to look for in repoids")
 parser.add_option("-m", "--mail", default=[], action='append',
                   help="what mail to send (owner, summary)")
+parser.add_option("-s", "--subject", default=None, action='store',
+                  type='string', dest='subject',
+                  help="what mail to send (owner, summary)")
 parser.add_option("-w", "--warn", default=[], action='append',
                   help="repository warnings to include (needsign, testing)")
 parser.add_option("", "--noowners", default=False, action="store_true",
@@ -194,6 +197,8 @@
 (opts, args) = parser.parse_args()
 
 loadConfigFile(opts.config)
+if opts.subject:
+    Mail['subject'] = opts.subject
 
 domail = len(opts.mail)>0
 brokendeps = []  # list of BrokenDeps




More information about the scm-commits mailing list