scripts/functions
changeset 1294 6fe8df60cfa4
parent 1292 546d2ed3410b
child 1299 3448ac3f1a5d
     1.1 --- a/scripts/functions	Sun Apr 19 16:34:59 2009 +0000
     1.2 +++ b/scripts/functions	Sun Apr 19 16:58:21 2009 +0000
     1.3 @@ -409,10 +409,9 @@
     1.4      # Add URLs on the LAN mirror
     1.5      LAN_URLS=
     1.6      if [ "${CT_USE_MIRROR}" = "y" ]; then
     1.7 -        CT_TestOrAbort "Please set the LAN mirror hostname" -n "${CT_MIRROR_HOSTNAME}"
     1.8 -        CT_TestOrAbort "Please tell me where to find tarballs on the LAN mirror '${CT_MIRROR_HOSTNAME}'" -n "${CT_MIRROR_BASE}"
     1.9 -        LAN_URLS="${LAN_URLS} ${CT_MIRROR_SCHEME}://${CT_MIRROR_HOSTNAME}/${CT_MIRROR_BASE}/${file%-*}"
    1.10 -        LAN_URLS="${LAN_URLS} ${CT_MIRROR_SCHEME}://${CT_MIRROR_HOSTNAME}/${CT_MIRROR_BASE}"
    1.11 +        CT_TestOrAbort "Please set the mirror base URL" -n "${CT_MIRROR_BASE_URL}"
    1.12 +        LAN_URLS="${LAN_URLS} ${CT_MIRROR_BASE_URL}/${file%-*}"
    1.13 +        LAN_URLS="${LAN_URLS} ${CT_MIRROR_BASE_URL}"
    1.14  
    1.15          if [ "${CT_PREFER_MIRROR}" = "y" ]; then
    1.16              CT_DoLog DEBUG "Pre-pending LAN mirror URLs"