Fix download fallback handling

This commit is contained in:
Arvin
2026-07-04 21:26:30 +08:00
parent 1ed7b86dd2
commit 58706dbe9d
4 changed files with 82 additions and 2 deletions
+2 -1
View File
@@ -824,7 +824,8 @@ download_mirror_score() {
case "$fail_streak" in ''|*[!0-9]*) fail_streak=0 ;; esac
if [ "$label" = "origin" ]; then
score=$((score + 5))
# Prefer GitHub mirrors by default; keep origin as the final fallback.
score=$((score - 300))
fi
if [ "$success_at" -gt 0 ]; then