extras-buildsys/utils extras-push-all,1.3,1.4

Warren Togami (wtogami) fedora-extras-commits at redhat.com
Mon May 8 14:21:41 UTC 2006


Author: wtogami

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

Modified Files:
	extras-push-all 
Log Message:
Add sanity tests for group and gpg .rpmmacros setup.



Index: extras-push-all
===================================================================
RCS file: /cvs/fedora/extras-buildsys/utils/extras-push-all,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- extras-push-all	4 May 2006 19:49:36 -0000	1.3
+++ extras-push-all	8 May 2006 14:21:38 -0000	1.4
@@ -14,6 +14,21 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
+# Sanity Tests
+if [ "`id -g -n`" != "extras_signers" ]; then
+  echo "ERROR: Your group must be extras_signers.  Try \`newgrp extras_signers\' before running this again."
+  exit 1
+fi
+if [ ! -h ~/.rpmmacros ]; then
+  echo "ERROR: ~/.rpmmacros must be a symbolic link."
+  exit 1
+fi
+if [ "`readlink -f ~/.rpmmacros`" != "/srv/extras-push/.rpmmacros" ]; then
+  echo "ERROR: ~/.rpmmacros must be pointing at /srv/extras-push/.rpmmacros."
+  exit 1
+fi
+
+# Sign & Push
 [ "$1" = "-f" ] && force=yes || force=
 dists="3 4 5 development"
 changed=




More information about the scm-commits mailing list