1.1 --- a/scripts/functions Tue Jan 06 21:00:39 2009 +0000
1.2 +++ b/scripts/functions Tue Jan 06 22:34:36 2009 +0000
1.3 @@ -480,6 +480,9 @@
1.4 CT_GetLocal "${file}" ${first_ext} && return 0 || true
1.5 # No, it does not...
1.6
1.7 + # Are downloads allowed ?
1.8 + CT_TestAndAbort "File '${file}' not present locally, and downloads are not allowed" "${CT_FORBID_DOWNLOAD}" = "y"
1.9 +
1.10 # Try to retrieve the file
1.11 CT_DoLog EXTRA "Retrieving '${file}'"
1.12 CT_Pushd "${CT_TARBALLS_DIR}"
1.13 @@ -539,6 +542,9 @@
1.14 CT_GetLocal "${basename}" && return 0 || true
1.15 # No, it does not...
1.16
1.17 + # Are downloads allowed ?
1.18 + CT_TestAndAbort "File '${file}' not present locally, and downloads are not allowed" "${CT_FORBID_DOWNLOAD}" = "y"
1.19 +
1.20 CT_DoLog EXTRA "Retrieving '${basename}'"
1.21
1.22 CT_MktempDir tmp_dir