From 9a73363d90d7589ffa8a4c9083ec453959c4f624 Mon Sep 17 00:00:00 2001 From: bp-sawyers Date: Fri, 23 Mar 2012 19:46:54 +0000 Subject: [PATCH] fix builddep.sh to get rid of older versions of the rpms git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11977 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- builddep.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/builddep.sh b/builddep.sh index 8bca0258e..9913e90ab 100755 --- a/builddep.sh +++ b/builddep.sh @@ -215,7 +215,8 @@ else echo "Creating $DFNAME ..." tar $verbosetar -jcf $DFNAME xcat-dep fi -cd xcat-dep + +#cd xcat-dep <-- now we want to stay above xcat-dep, so we can rsync the whole dir if [ "$UP" == 0 ]; then exit 0; @@ -238,11 +239,11 @@ else links="-l" fi echo "Uploading RPMs to $YUMDIR/$YUM/xcat-dep/ ..." -while [ $((i+=1)) -le 5 ] && ! rsync $links -ruv --delete * $UPLOADUSER,xcat@web.sourceforge.net:$YUMDIR/$YUM/xcat-dep/ +while [ $((i+=1)) -le 5 ] && ! rsync $links -ruv --delete xcat-dep $UPLOADUSER,xcat@web.sourceforge.net:$YUMDIR/$YUM/ do : ; done # Upload the tarball to the SF FRS Area i=0 echo "Uploading $DFNAME to $FRS/xcat-dep/$FRSDIR/ ..." -while [ $((i+=1)) -le 5 ] && ! rsync -v ../$DFNAME $UPLOADUSER,xcat@web.sourceforge.net:$FRS/xcat-dep/$FRSDIR/ +while [ $((i+=1)) -le 5 ] && ! rsync -v $DFNAME $UPLOADUSER,xcat@web.sourceforge.net:$FRS/xcat-dep/$FRSDIR/ do : ; done