From 3d66eaec01e5e6f4066f1d29c2d254030e953f92 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 4 Jun 2020 00:48:18 +0200 Subject: [PATCH] Retry wget on non-critical failures to try to avoid tmp dns issues --- data/helpers.d/utils | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/helpers.d/utils b/data/helpers.d/utils index 9c2f40618..1ea936aa7 100644 --- a/data/helpers.d/utils +++ b/data/helpers.d/utils @@ -145,7 +145,7 @@ ynh_setup_source () { cp $local_src $src_filename else # If not, download the source # Timeout option is here to enforce the timeout on dns query and tcp connect (c.f. man wget) - local out=`wget --timeout 900 --no-verbose --output-document=$src_filename $src_url 2>&1` || ynh_print_err --message="$out" + local out=`wget --tries 3 --no-dns-cache --timeout 900 --no-verbose --output-document=$src_filename $src_url 2>&1` || ynh_print_err --message="$out" fi # Check the control sum