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:
Yann E. MORIN" 2010-08-11 19:13:10 +02:00
parent 1c149fe46f
commit 63235bd89c

View File

@ -399,7 +399,7 @@ _curl=$(CT_Which curl)
# wget
# Usage: CT_DoGetFile <URL>
CT_DoGetFile() {
if [ -n "${_aria2c}" ]; then
if [ -n "${_aria2c}" -a ${CT_DOWNLOAD_MAX_CHUNKS} -gt 1 ]; then
CT_DoGetFileAria2 "$1"
elif [ -n "${_curl}" ]; then
CT_DoGetFileCurl "$1"