From: Rudolf Polzer Date: Sat, 29 Oct 2011 15:21:18 +0000 (+0200) Subject: make .no file have precedence over others X-Git-Tag: xonotic-v0.6.0~69^2~11 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=commitdiff_plain;h=727d37c978a900622dbcbb7eff6c862ac9b516cd make .no file have precedence over others --- diff --git a/all b/all index 114f5c32..75454a32 100755 --- a/all +++ b/all @@ -224,10 +224,9 @@ listrepos() for d in $repos; do p="${d%dir}" f="`repoflags "$d"`" - # if we have the dir, always keep it - if [ -d "$d" ]; then - msg "Repository $d enabled because it already exists" - $ECHO "$d" + # if we have .no file, skip + if [ -f "$d.no" ]; then + msg "Repository $d disabled by a .no file, delete $d.no to enable" continue fi # if .yes file exists, always keep it @@ -236,9 +235,10 @@ listrepos() $ECHO "$d" continue fi - # if we have .no file, skip - if [ -f "$d.no" ]; then - msg "Repository $d disabled by a .no file, delete $d.no to enable" + # if we have the dir, always keep it + if [ -d "$d" ]; then + msg "Repository $d enabled because it already exists" + $ECHO "$d" continue fi # if we have matching pk3, skip