]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- support for different wgets (1.8 vs 1.9)
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 3 Oct 2003 10:32:53 +0000 (10:32 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder -> 1.7

builder

diff --git a/builder b/builder
index acf5eb94d8428914be5ce0f2fe20c3f2bf2058e3..b0ec099e400942e01a8b94c89c79461f423da399 100644 (file)
--- a/builder
+++ b/builder
@@ -77,8 +77,11 @@ DEF_NICE_LEVEL=0
 
 FAIL_IF_NO_SOURCES="yes"
 
-GETURI="wget --passive-ftp -c -nd -t$WGET_RETRIES --inet"
-GETURI2="wget -c -nd -t$WGET_RETRIES --inet"
+wget --help 2>&1 | grep -q ' \-\-inet ' && WGET_OPTS="$WGET_OPTS --inet"
+wget --help 2>&1 | grep -q ' \-\-retry\-connrefused ' && WGET_OPTS="$WGET_OPTS --retry-connrefused"
+
+GETURI="wget --passive-ftp -c -nd -t$WGET_RETRIES $WGET_OPTS"
+GETURI2="wget -c -nd -t$WGET_RETRIES $WGET_OPTS"
 GETLOCAL="cp -a"
 
 if (rpm --version 2>&1 | grep -q '4.0.[0-2]'); then
This page took 0.04237 seconds and 4 git commands to generate.