From 7274ce1ddc0dc857a5ce74efe63d2bc7d8e22248 Mon Sep 17 00:00:00 2001 From: Victor Hu Date: Thu, 6 Jun 2019 10:06:41 -0400 Subject: [PATCH] Check rc, we are forcing home to /root and it will fail and keep going --- builddep.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/builddep.sh b/builddep.sh index 9c2fd55a0..85df1524e 100755 --- a/builddep.sh +++ b/builddep.sh @@ -98,6 +98,7 @@ if [ -z "$DESTDIR" ]; then fi fi +echo "INFO: xcat-dep package name: $DFNAME" echo "INFO: xcat-dep package will be created here: $XCATCOREDIR/$DESTDIR" # Create a function to check the return code, @@ -117,7 +118,7 @@ checkrc echo "Syncing RPMs from $GSA/ to $DESTDIR/xcat-dep ..." rsync -ilrtpu --delete $GSA/ $DESTDIR/xcat-dep checkrc -ls -ltr $DESTDIR/xcat-dep +ls $DESTDIR/xcat-dep cd $DESTDIR/xcat-dep # add a comment to indicate the latest xcat-dep tar ball name @@ -126,6 +127,7 @@ sed -i -e "s#REPLACE_LATEST_SNAP_LINE#The latest xcat-dep tar ball is ${DFNAME}# if [ "$OSNAME" != "AIX" ]; then # Get gpg keys in place mkdir -p $HOME/.gnupg + checkrc 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 rm -f $HOME/.gnupg/$i