diff --git a/bin/fetch_source_archive.sh b/bin/fetch_source_archive.sh index 9450216b..c5a4d9ec 100755 --- a/bin/fetch_source_archive.sh +++ b/bin/fetch_source_archive.sh @@ -56,7 +56,11 @@ download "$URL" && exit 0 # Shuffle the mirrors so we try each equally readarray -t BACKUP_MIRRORS < <(shuf -e "${BACKUP_MIRRORS[@]}") -archive="$(basename "$URL")" +# The mirrors use our archive names, which may differ from the primary source +# (e.g. musl-cross-make archives are just .tar.gz, makes more sense to use +# musl-cross-.tar.gz). This also means mirrors can be seeded directly +# from the packages// directories. +archive="$(basename "$FILE")" echo "Try mirrors for $archive" >&2 for mirror in "${BACKUP_MIRRORS[@]}"; do