[Checkins] SVN: zc.recipe.zope3instance/branches/gocept-zconf-slug-dev/src/zc/recipe/zope3instance/__init__.py - better heuristic to avoid more SCMs (thanks benji for the hint)

Christian Theune ct at gocept.com
Wed Dec 20 14:16:45 EST 2006


Log message for revision 71633:
   - better heuristic to avoid more SCMs (thanks benji for the hint)
  

Changed:
  U   zc.recipe.zope3instance/branches/gocept-zconf-slug-dev/src/zc/recipe/zope3instance/__init__.py

-=-
Modified: zc.recipe.zope3instance/branches/gocept-zconf-slug-dev/src/zc/recipe/zope3instance/__init__.py
===================================================================
--- zc.recipe.zope3instance/branches/gocept-zconf-slug-dev/src/zc/recipe/zope3instance/__init__.py	2006-12-20 19:15:48 UTC (rev 71632)
+++ zc.recipe.zope3instance/branches/gocept-zconf-slug-dev/src/zc/recipe/zope3instance/__init__.py	2006-12-20 19:16:45 UTC (rev 71633)
@@ -150,8 +150,11 @@
         """Copies a skeleton directory recursively."""
         # XXX Use pkg_resources to become zip_safe.
         for name in os.listdir(src):
-            if name in ['.svn']:
+            # Heuristic to avoid SCM files
+            if name.startswith('.'):
                 continue
+            if name in ['CVS']:
+                continue
             src_name = os.path.join(src, name)
             if os.path.isdir(src_name):
                 dest_name = os.path.join(dest, name)



More information about the Checkins mailing list