summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/functions10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/functions b/scripts/functions
index 199aa57..c80eecd 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}"