diff -r 987ff9768880 -r 2858a24a5846 scripts/functions --- a/scripts/functions Wed Aug 22 18:28:07 2012 +0200 +++ b/scripts/functions Sun Aug 12 07:45:42 2012 -0400 @@ -555,6 +555,12 @@ fi # No, it does not... + # If not allowed to download from the Internet, don't + if [ "${CT_FORBID_DOWNLOAD}" = "y" ]; then + CT_DoLog DEBUG "Not allowed to download from the Internet, aborting ${file} download" + return 1 + fi + # Try to retrieve the file CT_DoLog EXTRA "Retrieving '${file}'" @@ -565,7 +571,7 @@ URLS+=( "${CT_MIRROR_BASE_URL}" ) fi - if [ "${CT_FORBID_DOWNLOAD}" != "y" ]; then + if [ "${CT_FORCE_MIRROR}" != "y" ]; then URLS+=( "${@}" ) fi