diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-08-11 17:13:10 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-08-11 17:13:10 (GMT) |
commit | 63235bd89ce336aa21f8442b8f7d3bcde2ca7d25 (patch) | |
tree | 21250cb876c21cc800409db7a7192472500a4aa7 /scripts | |
parent | 1c149fe46f36f37c42000d8fedfa38ca6b825c90 (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')
-rw-r--r-- | scripts/functions | 2 |
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" |