From: Debian Julia Team Date: Tue, 10 Nov 2020 02:04:59 +0000 (+0000) Subject: Let the upstream downloader used during build be verbose, X-Git-Tag: archive/raspbian/1.5.3+dfsg-1+rpi1~2^2~16 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e1db08ea7bdced6dc0f59fd6d0d02c7237ce4137;p=julia.git Let the upstream downloader used during build be verbose, Last-Update: 20180711 Forwarded: no need and prevent it from accessing internet. Gbp-Pq: Name jldownload-verbose-fakedownload.patch --- diff --git a/deps/tools/jldownload b/deps/tools/jldownload index 9982219..5dd16cd 100755 --- a/deps/tools/jldownload +++ b/deps/tools/jldownload @@ -2,6 +2,7 @@ # # usage: jldownload [] # +set -x CACHE_HOST=https://cache.julialang.org @@ -44,4 +45,8 @@ fi # forward to the original URL if it has not cached this download yet, or # if the URL is not cacheable. We fallback to directly querying the # uncached URL to protect against cache service downtime -$GETURL $CACHE_URL || $GETURL $URL +#$GETURL $CACHE_URL || $GETURL $URL +DEST_URL=$(echo "$GETURL"|awk '{print $NF}'|sed 's#^.*file://##') +ORIG_URL=$(echo "$URL"|awk '{print $NF}'|sed 's#^.*file://##') +CP=$(which cp) +$CP "$ORIG_URL" "$DEST_URL"