scripts/functions
changeset 3052 06b663f297ad
parent 3040 987ff9768880
child 3075 aadd4647dd91
     1.1 --- a/scripts/functions	Wed Aug 22 18:28:07 2012 +0200
     1.2 +++ b/scripts/functions	Wed Sep 19 10:43:04 2012 +0200
     1.3 @@ -555,6 +555,12 @@
     1.4      fi
     1.5      # No, it does not...
     1.6  
     1.7 +    # If not allowed to download from the Internet, don't
     1.8 +    if [ "${CT_FORBID_DOWNLOAD}" = "y" ]; then
     1.9 +        CT_DoLog DEBUG "Not allowed to download from the Internet, aborting ${file} download"
    1.10 +        return 1
    1.11 +    fi
    1.12 +
    1.13      # Try to retrieve the file
    1.14      CT_DoLog EXTRA "Retrieving '${file}'"
    1.15  
    1.16 @@ -565,7 +571,7 @@
    1.17          URLS+=( "${CT_MIRROR_BASE_URL}" )
    1.18      fi
    1.19  
    1.20 -    if [ "${CT_FORBID_DOWNLOAD}" != "y" ]; then
    1.21 +    if [ "${CT_FORCE_MIRROR}" != "y" ]; then
    1.22          URLS+=( "${@}" )
    1.23      fi
    1.24