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
This commit is contained in:
bp-sawyers 2012-03-23 19:46:54 +00:00
parent 5389ce87ce
commit 9a73363d90

View File

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