mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-31 00:23:56 +00:00
scripts: when downloading, use aria2 only when //
Even when // downloads are not enabled, aria2 can fail on some servers (eg. uclibc.org). Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
parent
1c149fe46f
commit
63235bd89c
@ -399,7 +399,7 @@ _curl=$(CT_Which curl)
|
|||||||
# wget
|
# wget
|
||||||
# Usage: CT_DoGetFile <URL>
|
# Usage: CT_DoGetFile <URL>
|
||||||
CT_DoGetFile() {
|
CT_DoGetFile() {
|
||||||
if [ -n "${_aria2c}" ]; then
|
if [ -n "${_aria2c}" -a ${CT_DOWNLOAD_MAX_CHUNKS} -gt 1 ]; then
|
||||||
CT_DoGetFileAria2 "$1"
|
CT_DoGetFileAria2 "$1"
|
||||||
elif [ -n "${_curl}" ]; then
|
elif [ -n "${_curl}" ]; then
|
||||||
CT_DoGetFileCurl "$1"
|
CT_DoGetFileCurl "$1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user