diff -r 1fd2e11ccdd9 -r b62d14d45fc4 scripts/functions --- a/scripts/functions Tue Jan 06 21:00:39 2009 +0000 +++ b/scripts/functions Tue Jan 06 22:34:36 2009 +0000 @@ -480,6 +480,9 @@ CT_GetLocal "${file}" ${first_ext} && return 0 || true # No, it does not... + # Are downloads allowed ? + CT_TestAndAbort "File '${file}' not present locally, and downloads are not allowed" "${CT_FORBID_DOWNLOAD}" = "y" + # Try to retrieve the file CT_DoLog EXTRA "Retrieving '${file}'" CT_Pushd "${CT_TARBALLS_DIR}" @@ -539,6 +542,9 @@ CT_GetLocal "${basename}" && return 0 || true # No, it does not... + # Are downloads allowed ? + CT_TestAndAbort "File '${file}' not present locally, and downloads are not allowed" "${CT_FORBID_DOWNLOAD}" = "y" + CT_DoLog EXTRA "Retrieving '${basename}'" CT_MktempDir tmp_dir