From 1e7d087800f9f8372109f67b02a44fdb20fe4ac5 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 2 Jul 2006 18:15:27 +0000 Subject: Ignore hidden directories (such as .svn) when building the scanlist. svn path=/main/trunk/; revision=3760 --- bin/repoman | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/repoman b/bin/repoman index 5508373fb..5aef6da10 100755 --- a/bin/repoman +++ b/bin/repoman @@ -604,7 +604,7 @@ if repolevel==2: caterror(catdir) mydirlist=os.listdir(startdir) for x in mydirlist: - if x=="CVS": + if x == "CVS" or x.startswith("."): continue if os.path.isdir(startdir+"/"+x): scanlist.append(catdir+"/"+x) @@ -613,7 +613,7 @@ elif repolevel==1: if not os.path.isdir(startdir+"/"+x): continue for y in os.listdir(startdir+"/"+x): - if y=="CVS": + if y == "CVS" or y.startswith("."): continue if os.path.isdir(startdir+"/"+x+"/"+y): scanlist.append(x+"/"+y) -- cgit v1.2.3-1-g7c22