diff -r 748c418d3b6a -r 619019337ead scripts/functions --- a/scripts/functions Thu Jan 29 22:35:26 2009 +0000 +++ b/scripts/functions Sat Jan 31 13:15:18 2009 +0000 @@ -478,7 +478,7 @@ # Usage: CT_GetFile [.extension] [url ...] CT_GetFile() { local ext - local url + local url URLS LAN_URLS local file="$1" local first_ext shift @@ -501,6 +501,8 @@ 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 @@ 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