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
This commit is contained in:
bp-sawyers 2010-05-18 21:58:22 +00:00
parent 6e2ec934f7
commit 18234de443

View File

@ -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.