scripts/functions
changeset 1179 619019337ead
parent 1177 748c418d3b6a
child 1185 6ab978322ed7
     1.1 --- a/scripts/functions	Thu Jan 29 22:35:26 2009 +0000
     1.2 +++ b/scripts/functions	Sat Jan 31 13:15:18 2009 +0000
     1.3 @@ -478,7 +478,7 @@
     1.4  # Usage: CT_GetFile <basename> [.extension] <url> [url ...]
     1.5  CT_GetFile() {
     1.6      local ext
     1.7 -    local url
     1.8 +    local url URLS LAN_URLS
     1.9      local file="$1"
    1.10      local first_ext
    1.11      shift
    1.12 @@ -501,6 +501,8 @@
    1.13      CT_DoLog EXTRA "Retrieving '${file}'"
    1.14      CT_Pushd "${CT_TARBALLS_DIR}"
    1.15  
    1.16 +    URLS="$@"
    1.17 +
    1.18      # Add URLs on the LAN mirror
    1.19      LAN_URLS=
    1.20      if [ "${CT_USE_MIRROR}" = "y" ]; then
    1.21 @@ -511,10 +513,10 @@
    1.22  
    1.23          if [ "${CT_PREFER_MIRROR}" = "y" ]; then
    1.24              CT_DoLog DEBUG "Pre-pending LAN mirror URLs"
    1.25 -            URLS="${LAN_URLS} ${@}"
    1.26 +            URLS="${LAN_URLS} ${URLS}"
    1.27          else
    1.28              CT_DoLog DEBUG "Appending LAN mirror URLs"
    1.29 -            URLS="${@} ${LAN_URLS}"
    1.30 +            URLS="${URLS} ${LAN_URLS}"
    1.31          fi
    1.32      fi
    1.33