[PATCH 2 of 4] scripts: when downloading, use aria2 only when //
Yann E. MORIN
yann.morin.1998@anciens.enib.fr
Wed Aug 11 18:09:00 GMT 2010
# HG changeset patch
# User "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
# Date 1281546790 -7200
# Node ID a8fefc20b67fff9603cfcafe9c633759379ff29d
# Parent 7baf8c84627999be384cf4c5f741bb9e58ad0c05
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>
diff --git a/scripts/functions b/scripts/functions
--- a/scripts/functions
+++ b/scripts/functions
@@ -399,7 +399,7 @@
# 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"
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list