mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-06-17 06:48:16 +00:00
scripts/functions: do not double check if downloads are allowed
Only call the *_get functions if downloads are allowed, so there is no need to check it again in the retrieval wrappers.
This commit is contained in:
@ -448,9 +448,6 @@ CT_GetFile() {
|
||||
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}"
|
||||
@ -512,9 +509,6 @@ CT_GetCVS() {
|
||||
CT_GetLocal "${basename}" && return 0 || true
|
||||
# No, it does not...
|
||||
|
||||
# Are downloads allowed ?
|
||||
CT_TestAndAbort "File '${basename}' not present locally, and downloads are not allowed" "${CT_FORBID_DOWNLOAD}" = "y"
|
||||
|
||||
CT_DoLog EXTRA "Retrieving '${basename}'"
|
||||
|
||||
CT_MktempDir tmp_dir
|
||||
@ -554,9 +548,6 @@ CT_GetSVN() {
|
||||
CT_GetLocal "${basename}" && return 0 || true
|
||||
# No, it does not...
|
||||
|
||||
# Are downloads allowed ?
|
||||
CT_TestAndAbort "File '${basename}' not present locally, and downloads are not allowed" "${CT_FORBID_DOWNLOAD}" = "y"
|
||||
|
||||
CT_DoLog EXTRA "Retrieving '${basename}'"
|
||||
|
||||
CT_MktempDir tmp_dir
|
||||
|
Reference in New Issue
Block a user