From: Rudolf Polzer Date: Sun, 7 Nov 2010 19:08:10 +0000 (+0100) Subject: cleanup more (don't change mirror if no mirror selection possible) X-Git-Tag: xonotic-v0.1.0preview~69 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=commitdiff_plain;h=62c00cf9b98a79af6cb77422590d5d51be4bec8c cleanup more (don't change mirror if no mirror selection possible) --- diff --git a/all b/all index 2ddb919f..64cd0997 100755 --- a/all +++ b/all @@ -499,6 +499,23 @@ case "$cmd" in fi shift done + case "$location" in + best) + newbase=`echo "$base" | sed "s,://\(.*\.\)\?git.xonotic.org/,:// .git.xonotic.org/,"` + case "$newbase" in + *\ *) + if location=`bestmirror $newbase"xonotic.git" de nl`; then + : + else + location=current + fi + ;; + *) + location=current + ;; + esac + ;; + esac case "$location" in default) location= @@ -514,21 +531,6 @@ case "$cmd" in ;; esac ;; - best) - base=`echo "$base" | sed "s,://\(.*\.\)\?git.xonotic.org/,:// .git.xonotic.org/,"` - case "$base" in - *\ *) - if location=`bestmirror $base"xonotic.git" de nl`; then - : - else - location= - fi - ;; - *) - location= - ;; - esac - ;; esac if [ -n "$location" ]; then base=`echo "$base" | sed "s,://\(.*\.\)\?git.xonotic.org/,://$location.git.xonotic.org/,"`