diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-11-16 10:00:27 +0100 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-11-16 10:00:27 +0100 |
commit | 9dbbc8e5f6edf0e1386b4ba28d96918fa64fa2b5 (patch) | |
tree | 0d6ee9d1137680932d452a63120722a89793c3be /scripts/functions | |
parent | 25953c386f8a4ca580bbe7c09e95d18492424c1d (diff) | |
download | crosstool-ng-9dbbc8e5f6edf0e1386b4ba28d96918fa64fa2b5.tar.gz crosstool-ng-9dbbc8e5f6edf0e1386b4ba28d96918fa64fa2b5.tar.bz2 crosstool-ng-9dbbc8e5f6edf0e1386b4ba28d96918fa64fa2b5.zip |
scripts: remove aria2c as downloader, retain only curl and wget
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/scripts/functions b/scripts/functions index fc71715a..f7f30575 100644 --- a/scripts/functions +++ b/scripts/functions @@ -383,31 +383,16 @@ CT_DoGetFileCurl() { || rm -f "${1##*/}" } -# Download using aria2 -# Usage: CT_DoGetFileAria2 <URL> -CT_DoGetFileAria2() { - # Note: comments about curl method (above) are also valid here - # Plus: default progress indicator is a single line, so use verbose log - # so that the CT-NG's ouput is 'live'. - CT_DoExecLog ALL aria2c --summary-interval=1 -s ${CT_DOWNLOAD_MAX_CHUNKS} -m 3 -t ${CT_CONNECT_TIMEOUT} -p "$1" \ - || CT_DoExecLog ALL aria2c --summary-interval=1 -s ${CT_DOWNLOAD_MAX_CHUNKS} -m 3 -t ${CT_CONNECT_TIMEOUT} "$1" \ - || rm -f "${1##*/}" -} - # OK, just look if we have them... -_aria2c=$(CT_Which aria2c) _wget=$(CT_Which wget) _curl=$(CT_Which curl) # Wrapper function to call one of, in order of preference: -# aria2 # curl # wget # Usage: CT_DoGetFile <URL> CT_DoGetFile() { - if [ -n "${_aria2c}" -a ${CT_DOWNLOAD_MAX_CHUNKS} -gt 1 ]; then - CT_DoGetFileAria2 "$1" - elif [ -n "${_curl}" ]; then + if [ -n "${_curl}" ]; then CT_DoGetFileCurl "$1" elif [ -n "${_wget}" ]; then CT_DoGetFileWget "$1" |