build/buildutils/checkemptydirectories.py
changeset 80 d6dafc5d983f
parent 72 1f0034e370aa
--- a/build/buildutils/checkemptydirectories.py	Mon Oct 04 11:29:25 2010 +0300
+++ b/build/buildutils/checkemptydirectories.py	Fri Oct 15 12:29:39 2010 +0300
@@ -24,7 +24,8 @@
     def visitFun(arg, dirname, names):
 
         # Skip SVN directories
-        if dirname.find("\\.svn") != -1:
+        if dirname.endswith(".svn"):
+            names[:] = []
             return
         
         # Check if the directory is empty (except for the .svn subdirectory)