# HG changeset patch # User "Yann E. MORIN" # Date 1281546790 -7200 # Node ID d2ceb140371d32029afde78dcf877d8ac7b11596 # Parent 2895108fcec5d2e7694b169bd00ce08710808035 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" diff -r 2895108fcec5 -r d2ceb140371d scripts/functions --- a/scripts/functions Wed Aug 11 19:10:45 2010 +0200 +++ b/scripts/functions Wed Aug 11 19:13:10 2010 +0200 @@ -399,7 +399,7 @@ # wget # Usage: CT_DoGetFile 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"