extras-buildsys/utils/pushscript PushPackage.py,1.2,1.3

Michael Schwendt (mschwendt) fedora-extras-commits at redhat.com
Thu Aug 23 12:04:16 UTC 2007


Author: mschwendt

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

Modified Files:
	PushPackage.py 
Log Message:
add an option --stable so this script can override a default "pushtotesting" config value


Index: PushPackage.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/utils/pushscript/PushPackage.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- PushPackage.py	21 Feb 2007 20:47:53 -0000	1.2
+++ PushPackage.py	23 Aug 2007 12:04:13 -0000	1.3
@@ -32,11 +32,19 @@
 
 
 if __name__ == '__main__':
+    argstable = None
+    if '--stable' in sys.argv:
+        sys.argv.remove('--stable')
+        argstable = True
+
     if len(sys.argv) < 2:
-        print 'Usage: %s <project> <release> <name>\n' % os.path.basename(sys.argv[0])
+        print 'Usage: %s <project> <release> <name> [--stable]\n' % os.path.basename(sys.argv[0])
         sys.exit(errno.EINVAL)
 
     cfg = Utils.load_config_module(sys.argv[1])
+    
+    if hasattr(cfg.opts,'pushtotesting') and cfg.opts.pushtotesting and argstable:
+        del cfg.opts.pushtotesting
 
     Utils.signer_gid_check(cfg.signersgid)
     if cfg.opts.signkeycheck:




More information about the fedora-extras-commits mailing list