From 3d2ce98f9efa5350579fe614509999fdecaff138 Mon Sep 17 00:00:00 2001 From: ligc Date: Tue, 2 Jun 2015 23:49:01 -0400 Subject: [PATCH] update buildcore.sh to add a new environment variable RPMSIGN to specify if the RPMs will be signed --- buildcore.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/buildcore.sh b/buildcore.sh index 6713ce54d..f9c7edc29 100755 --- a/buildcore.sh +++ b/buildcore.sh @@ -371,7 +371,8 @@ if [ ! -z ${LOG} ]; then fi # get gpg keys in place -if [ "$OSNAME" != "AIX" ] && ( [ -z "$RPMSIGN" ] || [ "$RPMSIGN" == "1" ] ); then +if [ "$OSNAME" != "AIX" ]; then + if [ -z "$RPMSIGN" -o "$RPMSIGN" == "1" ]; then mkdir -p $HOME/.gnupg for i in pubring.gpg secring.gpg trustdb.gpg; do if [ ! -f $HOME/.gnupg/$i ] || [ `wc -c $HOME/.gnupg/$i|cut -f 1 -d' '` == 0 ]; then @@ -403,6 +404,10 @@ if [ "$OSNAME" != "AIX" ] && ( [ -z "$RPMSIGN" ] || [ "$RPMSIGN" == "1" ] ); the if [ ! -f $SRCDIR/repodata/repomd.xml.key ]; then ${WGET_CMD} -P $SRCDIR/repodata $GSA/keys/repomd.xml.key fi + else + createrepo --checksum sha $DESTDIR + createrepo --checksum sha $SRCDIR + fi fi # set group and permissions correctly on the built rpms