Skip to content

Commit ce7609c

Browse files
build(proot): fetch pinned talloc from stable mirror
Use the MacPorts distfile mirror for talloc 2.4.3 after repeated Samba endpoint 503 and 504 failures in Android CI. Keep the existing SHA-256 verification and bound download retries so transient network errors do not fail native-runtime preparation immediately.
1 parent 001b0ee commit ce7609c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tools/build-proot-assets.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fetch_checked() {
2424
local url="$1"
2525
local output="$2"
2626
local expected="$3"
27-
curl --fail --location --silent --show-error "$url" --output "$output"
27+
curl --fail --location --silent --show-error --retry 3 --connect-timeout 10 --max-time 60 "$url" --output "$output"
2828
local actual
2929
actual="$(shasum -a 256 "$output" | cut -d ' ' -f 1)"
3030
if [[ "$actual" != "$expected" ]]; then
@@ -40,7 +40,7 @@ fetch_checked \
4040
"$WORK/proot.zip" \
4141
"$PROOT_SHA256"
4242
fetch_checked \
43-
"https://www.samba.org/ftp/talloc/talloc-${TALLOC_VERSION}.tar.gz" \
43+
"https://mse.uk.distfiles.macports.org/talloc/talloc-${TALLOC_VERSION}.tar.gz" \
4444
"$WORK/talloc.tar.gz" \
4545
"$TALLOC_SHA256"
4646

0 commit comments

Comments
 (0)