From: ankry Date: Tue, 18 Sep 2001 10:55:37 +0000 (+0000) Subject: - added support for limitting number of wget retries when fetching a file X-Git-Tag: RA-1_0~50 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=34c911e6d68aec9de06a742776fbff0de0953e9b;p=packages%2Frpm-build-tools.git - added support for limitting number of wget retries when fetching a file from ftp/http server via environment variable MAX_WGET_RETRIES. Defaults to infinite (0). Changed files: builder.sh -> 1.82 --- diff --git a/builder.sh b/builder.sh index d1ed1f9..e562e45 100644 --- a/builder.sh +++ b/builder.sh @@ -41,12 +41,13 @@ ICONS="" PACKAGE_RELEASE="" PACKAGE_VERSION="" PACKAGE_NAME="" +WGET_RETRIES=${MAX_WGET_RETRIES:-0} DEF_NICE_LEVEL=0 FAIL_IF_NO_SOURCES="yes" -GETURI="wget -c -nd -t0" +GETURI="wget -c -nd -t$WGET_RETRIES" if [ -f ~/etc/builderrc ]; then . ~/etc/builderrc @@ -462,6 +463,9 @@ esac cd $__PWD # $Log$ +# Revision 1.81 2001/07/06 16:52:30 misiek +# - by default use CVSroot from CVS/Root and if it doesn't exist use from CVSROOT variable +# # Revision 1.80 2001/06/22 18:52:39 misiek # - added support for --with/--without options #