From 68fae4f23ff9f4b7e76f29771cc90b63bfdffc8d Mon Sep 17 00:00:00 2001 From: Guillaume Roguez <guillaume.roguez@savoirfairelinux.com> Date: Thu, 4 Jun 2015 09:05:44 -0400 Subject: [PATCH] contrib: add retry/delay to download commands This help in some rare DNS resolving or network error events. Refs #74716 Change-Id: If79a5ba95003c45d87c39c73cf3a4f7b4a26d119 --- contrib/src/main.mak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/src/main.mak b/contrib/src/main.mak index b16b6fac0f..6b786f08ee 100644 --- a/contrib/src/main.mak +++ b/contrib/src/main.mak @@ -214,10 +214,10 @@ endif SVN ?= $(error subversion client (svn) not found!) ifeq ($(shell curl --version >/dev/null 2>&1 || echo FAIL),) -download = curl -f -L -- "$(1)" > "$@" +download = curl -f -L --retry-delay 10 --retry 2 -- "$(1)" > "$@" else ifeq ($(shell wget --version >/dev/null 2>&1 || echo FAIL),) download = rm -f $@.tmp && \ - wget --passive -c -p -O $@.tmp "$(1)" && \ + wget --passive -t 2 -w 10 -c -p -O $@.tmp "$(1)" && \ touch $@.tmp && \ mv $@.tmp $@ else ifeq ($(which fetch >/dev/null 2>&1 || echo FAIL),) -- GitLab