Martin Roth has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/47338 )
Change subject: util/crossgcc: Retry package downloads on failure ......................................................................
util/crossgcc: Retry package downloads on failure
For whatever reason, I've had buildgcc fail to download packages a number of times. Adding 2 additional retries before failing helps with that problem.
Signed-off-by: Martin Roth martin@coreboot.org Change-Id: I060eaa5a0da955436169e2199c1c62044dcfd5ea --- M util/crossgcc/buildgcc 1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/38/47338/1
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index d5cca6c..196e265 100755 --- a/util/crossgcc/buildgcc +++ b/util/crossgcc/buildgcc @@ -1057,7 +1057,7 @@ download_showing_percentage() { url=$1 printf "... ${red} 0%%" - wget "$url" 2>&1 | while read -r line; do + wget --tries=3 "$url" 2>&1 | while read -r line; do echo "$line" | grep -o "[0-9]+%" | awk '{printf("\b\b\b\b%4s", $1)}' done printf "${NC}... " @@ -1066,7 +1066,7 @@ download_showing_percentage() { url=$1 echo - curl -#OL "$url" + curl --progress-bar --location --retry 3 "$url" } fi