Skip to content

Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.

fetch.sh: --retry-all-errors only where curl has it (EL8's 7.61 doesn't; --retry covers 5xx); no_revert self-test: autocrlf off (Windows)

islandmed930b765d6691
diff --git a/tools/ci/fetch.sh b/tools/ci/fetch.sh
index d42968d7..f37229ea 100755
--- a/tools/ci/fetch.sh
+++ b/tools/ci/fetch.sh
@@ -14,12 +14,14 @@ dir=${SF_DEPS_CACHE:-.deps}
mkdir -p "$dir"
f=$dir/$sum-${url##*/}
sha() { if command -v sha256sum >/dev/null; then sha256sum "$1" | cut -d' ' -f1; else shasum -a 256 "$1" | cut -d' ' -f1; fi; }
+# --retry alone already retries 5xx answers; --retry-all-errors (curl 7.71+; not EL8's 7.61) also covers resets.
+all=; curl --help all 2>/dev/null | grep -q -- --retry-all-errors && all=--retry-all-errors
if [ ! -f "$f" ] || [ "$(sha "$f")" != "$sum" ]; then
# curl's own retries back off 1-16 s; a longer outage gets two more rounds, 30 s and 90 s later.
for wait in 0 30 90 x; do
[ "$wait" != x ] || { echo "can't download $url" >&2; exit 1; }
sleep "$wait"
- curl -fsSL --retry 5 --retry-all-errors --connect-timeout 30 -o "$f.part" "$url" && break
+ curl -fsSL --retry 5 $all --connect-timeout 30 -o "$f.part" "$url" && break
done
got=$(sha "$f.part")
[ "$got" = "$sum" ] || { rm -f "$f.part"; echo "$url: SHA-256 $got, expected $sum" >&2; exit 1; }
diff --git a/tools/ci/no_revert.py b/tools/ci/no_revert.py
index a969383b..ec28f793 100755
--- a/tools/ci/no_revert.py
+++ b/tools/ci/no_revert.py
@@ -146,6 +146,7 @@ def self_test():
with tempfile.TemporaryDirectory() as d:
g = lambda *a: git("-c", "user.name=t", "-c", "[email protected]", "-c", "commit.gpgsign=false", *a, cwd=d)
g("init", "-q", "-b", "main")
+ g("config", "core.autocrlf", "false") # Windows' git would convert the files written below
def write(name, lines):
with open(os.path.join(d, name), "w") as f: