make .no file have precedence over others
authorRudolf Polzer <divverent@xonotic.org>
Sat, 29 Oct 2011 15:21:18 +0000 (17:21 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Sat, 29 Oct 2011 15:21:18 +0000 (17:21 +0200)
all

diff --git a/all b/all
index 114f5c32e76c6e13f42d1ee8f38a71fbd9d6ec35..75454a32e56b79a78b0a8ca79547486805160769 100755 (executable)
--- 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