From 8b5e8edf76bf946841cbcc11ec2ac87507c94043 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Fri, 3 Oct 2003 10:32:53 +0000 Subject: [PATCH] - support for different wgets (1.8 vs 1.9) Changed files: builder -> 1.7 --- builder | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/builder b/builder index acf5eb9..b0ec099 100644 --- 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 -- 2.44.0