diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-01-31 13:15:18 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-01-31 13:15:18 +0000 |
commit | 1a346ed2736e024006f406f12fa67e9b2484b089 (patch) | |
tree | 25be9b142c1a4ccea0e14fa957e782e81e0cb40b /scripts/functions | |
parent | 9f53d6a4b8a1ca76ad3d28b5c2c59b543b449b84 (diff) | |
download | crosstool-ng-1a346ed2736e024006f406f12fa67e9b2484b089.tar.gz crosstool-ng-1a346ed2736e024006f406f12fa67e9b2484b089.tar.bz2 crosstool-ng-1a346ed2736e024006f406f12fa67e9b2484b089.zip |
Fix downloading with CT_GetFile when no mirror is set.
/trunk/scripts/functions | 8 5 3 0 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/functions b/scripts/functions index 209d2361..b3b216a2 100644 --- a/scripts/functions +++ b/scripts/functions @@ -478,7 +478,7 @@ CT_SaveLocal() { # Usage: CT_GetFile <basename> [.extension] <url> [url ...] CT_GetFile() { local ext - local url + local url URLS LAN_URLS local file="$1" local first_ext shift @@ -501,6 +501,8 @@ CT_GetFile() { CT_DoLog EXTRA "Retrieving '${file}'" CT_Pushd "${CT_TARBALLS_DIR}" + URLS="$@" + # Add URLs on the LAN mirror LAN_URLS= if [ "${CT_USE_MIRROR}" = "y" ]; then @@ -511,10 +513,10 @@ CT_GetFile() { if [ "${CT_PREFER_MIRROR}" = "y" ]; then CT_DoLog DEBUG "Pre-pending LAN mirror URLs" - URLS="${LAN_URLS} ${@}" + URLS="${LAN_URLS} ${URLS}" else CT_DoLog DEBUG "Appending LAN mirror URLs" - URLS="${@} ${LAN_URLS}" + URLS="${URLS} ${LAN_URLS}" fi fi |