# HG changeset patch # User "Yann E. MORIN" # Date 1289898027 -3600 # Node ID ac3e215141a1ba49fb7941e55a5c2dcee0999435 # Parent 208b2db4a8a33f9562c66794e8516fca09807e91 scripts: remove aria2c as downloader, retain only curl and wget Signed-off-by: "Yann E. MORIN" diff -r 208b2db4a8a3 -r ac3e215141a1 config/global/download.in --- a/config/global/download.in Sat Nov 13 23:26:21 2010 +0100 +++ b/config/global/download.in Tue Nov 16 10:00:27 2010 +0100 @@ -91,21 +91,6 @@ Note that this value applies equally to wget if you have that installed. -config DOWNLOAD_MAX_CHUNKS - int - prompt "Maximum number of // chunks" - default 1 - range 1 10 - help - If you have aria2 installed, then it will be used to download files. - Aria2 can split the download in chunks, and download those chunks in // - which can be interesting to speed up the download. - - On the other hand, using many chunks, or even chunking in general, may - be seen by some site admins as being kind of unfair, or even as a DoS. - That's why the range of acceptable values is [1..10], and the default - is 5 (aria2's default). - config ONLY_DOWNLOAD bool prompt "Stop after downloading tarballs" diff -r 208b2db4a8a3 -r ac3e215141a1 configure --- a/configure Sat Nov 13 23:26:21 2010 +0100 +++ b/configure Tue Nov 16 10:00:27 2010 +0100 @@ -358,7 +358,7 @@ ver='\(GNU libtool.*\) (2[[:digit:]]*\.|1\.6[[:digit:]]*\.|1\.5\.[2-9][[:digit:]]+)' \ err="'libtool' 1.5.26 or above was not found" has_or_abort prog=stat -has_or_abort prog="aria2c curl wget" +has_or_abort prog="curl wget" has_or_abort prog=cvs has_or_abort prog=patch has_or_abort prog=tar diff -r 208b2db4a8a3 -r ac3e215141a1 scripts/build/libc/newlib.sh --- a/scripts/build/libc/newlib.sh Sat Nov 13 23:26:21 2010 +0100 +++ b/scripts/build/libc/newlib.sh Tue Nov 16 10:00:27 2010 +0100 @@ -16,14 +16,10 @@ do_libc_get() { local libc_src local avr32headers_src - local save_chunks libc_src="ftp://sources.redhat.com/pub/newlib" avr32headers_src="http://dev.doredevelopment.dk/avr32-toolchain/sources" - save_chunks="${CT_DOWNLOAD_MAX_CHUNKS}" - CT_DOWNLOAD_MAX_CHUNKS=1 - if [ -z "${CT_LIBC_NEWLIB_CVS}" ]; then CT_GetFile "newlib-${CT_LIBC_VERSION}" ${libc_src} else @@ -37,8 +33,6 @@ if [ "${CT_ATMEL_AVR32_HEADERS}" = "y" ]; then CT_GetFile "avr32headers" ${avr32headers_src} fi - - CT_DOWNLOAD_MAX_CHUNKS="${save_chunks}" } do_libc_extract() { diff -r 208b2db4a8a3 -r ac3e215141a1 scripts/functions --- a/scripts/functions Sat Nov 13 23:26:21 2010 +0100 +++ b/scripts/functions Tue Nov 16 10:00:27 2010 +0100 @@ -383,31 +383,16 @@ || rm -f "${1##*/}" } -# Download using aria2 -# Usage: CT_DoGetFileAria2 -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 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"