[Checkins] SVN: z3c.recipe.kgstest/trunk/src/z3c/recipe/kgstest/ reorganize include/exclude, again.

Wolfgang Schnerring wosc at wosc.de
Wed Jan 28 06:00:03 EST 2009


Log message for revision 95288:
  reorganize include/exclude, again.
  

Changed:
  U   z3c.recipe.kgstest/trunk/src/z3c/recipe/kgstest/README.txt
  U   z3c.recipe.kgstest/trunk/src/z3c/recipe/kgstest/recipe.py

-=-
Modified: z3c.recipe.kgstest/trunk/src/z3c/recipe/kgstest/README.txt
===================================================================
--- z3c.recipe.kgstest/trunk/src/z3c/recipe/kgstest/README.txt	2009-01-28 10:47:27 UTC (rev 95287)
+++ z3c.recipe.kgstest/trunk/src/z3c/recipe/kgstest/README.txt	2009-01-28 11:00:02 UTC (rev 95288)
@@ -9,7 +9,6 @@
 ...
 ... [kgstest]
 ... recipe = z3c.recipe.kgstest
-... exclude = .*
 ... include = z3c.recipe.kgstest
 ... """)
 >>> system(buildout).find('Installing kgstest') != -1

Modified: z3c.recipe.kgstest/trunk/src/z3c/recipe/kgstest/recipe.py
===================================================================
--- z3c.recipe.kgstest/trunk/src/z3c/recipe/kgstest/recipe.py	2009-01-28 10:47:27 UTC (rev 95287)
+++ z3c.recipe.kgstest/trunk/src/z3c/recipe/kgstest/recipe.py	2009-01-28 11:00:02 UTC (rev 95288)
@@ -17,7 +17,7 @@
            'zope.release', 'zope.pytz', 'zope.timestamp', \
            'zope.tutorial', 'zope.ucol', 'zope.weakset', \
            'zope.webdev', 'zope.xmlpickle', 'zope.app.boston',]
-INCLUDE = ['zope.*', 'grokcore.*']
+INCLUDE = ['^zope\..*', '^grokcore\..*']
 
 
 def string2list(string, default):
@@ -81,16 +81,16 @@
         svn_list, _ = popen2.popen2("svn ls %s" % self.svn_url)
         for project in svn_list:
             project = project[:-2]
-            skip = False
-            for regex in self.exclude:
+            include = False
+            for regex in self.include:
                 if re.compile(regex).search(project):
-                    skip = True
+                    include = True
                     break
-            for regex in self.include:
+            for regex in self.exclude:
                 if re.compile(regex).search(project):
-                    skip = False
+                    include = False
                     break
-            if not skip:
+            if include:
                 projects.append(project)
         return projects
 



More information about the Checkins mailing list