diff --git a/scripts/functions b/scripts/functions index 199aa57a..c80eecdb 100644 --- a/scripts/functions +++ b/scripts/functions @@ -629,11 +629,11 @@ CT_GetSVN() { local uri="$2" local rev="$3" - # Does it exist localy? - CT_GetLocal "${basename}" && return 0 || true - # No, it does not... - - CT_DoLog EXTRA "Retrieving '${basename}'" + # First try locally, then the mirror + if CT_GetFile "${basename}"; then + # Got it! Return early! :-) + return 0 + fi CT_MktempDir tmp_dir CT_Pushd "${tmp_dir}"