From: Zac Medico Date: Sun, 2 Jul 2006 18:15:27 +0000 (-0000) Subject: Ignore hidden directories (such as .svn) when building the scanlist. X-Git-Tag: v2.1.1~297 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1e7d087800f9f8372109f67b02a44fdb20fe4ac5;p=portage.git Ignore hidden directories (such as .svn) when building the scanlist. svn path=/main/trunk/; revision=3760 --- 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)