From 727d37c978a900622dbcbb7eff6c862ac9b516cd Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sat, 29 Oct 2011 17:21:18 +0200 Subject: [PATCH] make .no file have precedence over others --- all | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 -- 2.39.2