From ed66b8ab12d68636f2378b15d04b61a1bc96fb3f Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Fri, 5 Aug 2016 04:22:32 -0400 Subject: [PATCH] Try downloads for longer time before giving up --- build-package.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-package.sh b/build-package.sh index e126a5073..50daa0fcd 100755 --- a/build-package.sh +++ b/build-package.sh @@ -275,13 +275,13 @@ termux_download() { DESTINATION="$2" TMPFILE=`mktemp $TERMUX_PKG_TMPDIR/download.XXXXXXXXX` - for i in 1 2 3; do + for i in 1 2 3 4 5 6; do if curl -L --fail --retry 2 -o "$TMPFILE" "$URL"; then mv "$TMPFILE" "$DESTINATION" return else echo "Download of $1 failed (attempt $i/3)" 1>&2 - sleep 20 + sleep 45 fi done echo "Failed to download $1 - exiting" 1>&2