Author: jfrederic.clere(a)jboss.com
Date: 2009-11-24 07:12:10 -0500 (Tue, 24 Nov 2009)
New Revision: 2594
Modified:
trunk/build/unix/build.sh
Log:
Stop building if download failed...
Modified: trunk/build/unix/build.sh
===================================================================
--- trunk/build/unix/build.sh 2009-11-24 11:03:32 UTC (rev 2593)
+++ trunk/build/unix/build.sh 2009-11-24 12:12:10 UTC (rev 2594)
@@ -502,6 +502,10 @@
if [ $? -ne 0 ]; then
echo "downloadtaredsrc Retrying on $URLBACK"
wget --tries=3 --retry-connrefused $URLBACK
+ if [ $? -ne 0 ]; then
+ echo "downloadtaredsrc FAILED"
+ return 1
+ fi
fi
fname=`basename $URL`
case ${fname} in
@@ -513,6 +517,7 @@
;;
esac
rm -f $fname
+ return 0
}
# Wrap command line arguments to windows
@@ -1085,6 +1090,10 @@
cd $build_cache_dir
if [ ! -d ${src_dir} ]; then
downloadtaredsrc $src_url $src_url_back
+ if [ $? -ne 0 ]; then
+ echo "Can't download $src_url $src_url_back"
+ exit 1
+ fi
$build_top/util/overridecp.sh $build_top/../../srclib/ ${name_prod} ${version_prod}
NMAKEmakefile $src_dir
applypatch $src_dir false
fi
@@ -1093,6 +1102,7 @@
mkdir -p ${package_src_dir}/srclib/common
cp ${basedir}/common/* ${package_src_dir}/srclib/common
cd $build_top
+ return 0
}
# set the urls
Show replies by date