summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-08-11 17:13:10 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-08-11 17:13:10 (GMT)
commit63235bd89ce336aa21f8442b8f7d3bcde2ca7d25 (patch)
tree21250cb876c21cc800409db7a7192472500a4aa7 /scripts/functions
parent1c149fe46f36f37c42000d8fedfa38ca6b825c90 (diff)
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>
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/functions b/scripts/functions
index 16f894b..b69efd1 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -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"