Ignore hidden directories (such as .svn) when building the scanlist.
authorZac Medico <zmedico@gentoo.org>
Sun, 2 Jul 2006 18:15:27 +0000 (18:15 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 2 Jul 2006 18:15:27 +0000 (18:15 -0000)
svn path=/main/trunk/; revision=3760

bin/repoman

index 5508373fb984f43317b2605db274b1d5f141a04f..5aef6da10c147b7bb6793d3b4ccfb637acbaf529 100755 (executable)
@@ -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)