]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- added support for limitting number of wget retries when fetching a file
authorankry <ankry@pld-linux.org>
Tue, 18 Sep 2001 10:55:37 +0000 (10:55 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  from ftp/http server via environment variable MAX_WGET_RETRIES.
  Defaults to infinite (0).

Changed files:
    builder.sh -> 1.82

builder.sh

index d1ed1f976177b288c1695dee3fd0be2a940621cf..e562e45568e07f8d78dc644e5ce5ff116da1119b 100644 (file)
@@ -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
 #
This page took 0.027468 seconds and 4 git commands to generate.