From: Debian Julia Team Date: Thu, 12 Nov 2020 09:50:14 +0000 (+0000) Subject: Let the upstream downloader used during build be verbose, X-Git-Tag: archive/raspbian/1.5.3+dfsg-2+rpi1~1^2~16 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=eaedf74efbaae7782f77265c9152f9adcf233390;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"