From 18234de4433af3d2f9b1feee8ed5a397cb456bbf Mon Sep 17 00:00:00 2001 From: bp-sawyers Date: Tue, 18 May 2010 21:58:22 +0000 Subject: [PATCH] Generate keys in repodata if not there git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6163 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- builddep.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/builddep.sh b/builddep.sh index 0a6b98d77..623585812 100755 --- a/builddep.sh +++ b/builddep.sh @@ -65,7 +65,14 @@ cd $DESTDIR/xcat-dep $XCATCOREDIR/build-utils/rpmsign.exp `find . -type f -name '*.rpm'` # Create the repodata dirs -for i in `find -mindepth 2 -maxdepth 2 -type d `; do createrepo $i; done +for i in `find -mindepth 2 -maxdepth 2 -type d `; do + createrepo $i + rm -f $i/repodata/repomd.xml.asc + gpg -a --detach-sign $i/repodata/repomd.xml + if [ ! -f $i/repodata/repomd.xml.key ]; then + cp $GSA/../keys/repomd.xml.key $i/repodata + fi +done # Get the permissions correct. Have to have all dirs/files with a group of xcat # and have them writeable by group, so any member of the xcat can build.