Merge pull request #1908 from native-api/show_cache_filename

Report cache filename at download
This commit is contained in:
Anton Petrov 2021-05-23 19:54:32 +03:00 committed by GitHub
commit 748a1ff0ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -417,8 +417,8 @@ fetch_tarball() {
fi fi
if ! reuse_existing_tarball "$package_filename" "$checksum"; then if ! reuse_existing_tarball "$package_filename" "$checksum"; then
local tarball_filename="$(basename "$package_url")" # Report the cached file name -- sometimes, it's useful to know (#1743)
echo "Downloading ${tarball_filename}..." >&2 echo "Downloading ${package_filename}..." >&2
http head "$mirror_url" && http head "$mirror_url" &&
download_tarball "$mirror_url" "$package_filename" "$checksum" || download_tarball "$mirror_url" "$package_filename" "$checksum" ||
download_tarball "$package_url" "$package_filename" "$checksum" download_tarball "$package_url" "$package_filename" "$checksum"