From bb979911c88a4c6afb44278425f2777da35dfa02 Mon Sep 17 00:00:00 2001 From: bryanthaboi Date: Mon, 10 Aug 2026 14:59:04 -0400 Subject: [PATCH] Update common.sh --- scripts/linux-arm64/common.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/linux-arm64/common.sh b/scripts/linux-arm64/common.sh index 39e196b4..292f1416 100755 --- a/scripts/linux-arm64/common.sh +++ b/scripts/linux-arm64/common.sh @@ -142,7 +142,10 @@ download_pinned() { rm -f "$dest" fi say "downloading $(basename "$dest")" - curl -fL --progress-bar "$url" -o "$dest.tmp" || fail "download failed: $url" + # --retry-all-errors because plain --retry skips TLS handshake failures, + # which is how xiph.org drops these tarballs; the pin below still gates it. + curl -fL --retry 5 --retry-delay 2 --retry-all-errors --progress-bar \ + "$url" -o "$dest.tmp" || fail "download failed: $url" got="$(sha256_file "$dest.tmp")" [ "$got" = "$want" ] || fail "$(printf '%s\n expected %s\n got %s' \ "checksum mismatch for $(basename "$dest")" "$want" "$got")"