extras-buildsys/utils extras-push-new,1.5,1.6

Michael Schwendt (mschwendt) fedora-extras-commits at redhat.com
Wed May 10 21:41:39 UTC 2006


Author: mschwendt

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

Modified Files:
	extras-push-new 
Log Message:
- add a safety check on whether ~/.rpmmacros might not be set up


Index: extras-push-new
===================================================================
RCS file: /cvs/fedora/extras-buildsys/utils/extras-push-new,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- extras-push-new	10 May 2006 15:13:08 -0000	1.5
+++ extras-push-new	10 May 2006 21:41:37 -0000	1.6
@@ -51,6 +51,7 @@
            'repoclosure' : False,
            'gidcheck' : True,
            'setumask' : True,
+           'signkeycheck' : True,
            'mail' : True,
            'doublesync' : True,
            'force' : False
@@ -419,6 +420,11 @@
             print 'ERROR: Change into extras_signers group before running this!  Use "newgrp extras_signers".'
             sys.exit(13)
 
+    if config['signkeycheck']:
+        if 'extras at fedoraproject.org' != os.popen('rpm --eval %_gpg_name','r').read().rstrip():
+            print 'ERROR: Configure ~/.rpmmacros for proper GPG signing before running this!'
+            sys.exit(13)
+
     if config['setumask']:
         os.umask(0002)
 




More information about the fedora-extras-commits mailing list