From: Rudolf Polzer Date: Sat, 2 Apr 2011 11:02:16 +0000 (+0200) Subject: mirrorselection: handle errors better X-Git-Tag: xonotic-v0.5.0~109 X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=commitdiff_plain;h=34f72cabfb84135995fe74ae71bb9cb6d85228e0 mirrorselection: handle errors better --- diff --git a/all b/all index ae5a06af..1685f362 100755 --- a/all +++ b/all @@ -379,6 +379,7 @@ bestmirror() suf=$1; shift if ! { time -p true; } >/dev/null 2>&1; then + msg "Cannot do timing in this shell" return 1 fi @@ -546,7 +547,6 @@ case "$cmd" in case "$location" in current) if [ x"`git config xonotic.all.mirrorselection 2>/dev/null || true`" != x"done" ]; then - git config xonotic.all.mirrorselection done location=best fi ;; @@ -564,7 +564,7 @@ case "$cmd" in case "$newbase" in *\ *) if location=`bestmirror $newbase"xonotic.git" de us nl:'*6/5'`; then # 20% malus to the NL server to not overload it too much - : + git config xonotic.all.mirrorselection done else location=current fi