[CalendarServer-changes] [7577] CalendarServer/trunk/setup.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Jun 8 13:36:32 PDT 2011


Revision: 7577
          http://trac.macosforge.org/projects/calendarserver/changeset/7577
Author:   glyph at apple.com
Date:     2011-06-08 13:36:32 -0700 (Wed, 08 Jun 2011)
Log Message:
-----------
be more consistent about excluding files, and only try to remove 'data' child of root if it's there.

Modified Paths:
--------------
    CalendarServer/trunk/setup.py

Modified: CalendarServer/trunk/setup.py
===================================================================
--- CalendarServer/trunk/setup.py	2011-06-08 17:54:07 UTC (rev 7576)
+++ CalendarServer/trunk/setup.py	2011-06-08 20:36:32 UTC (rev 7577)
@@ -29,14 +29,16 @@
     ]
 
     for root, dirs, files in os.walk("."):
-        if root == ".":
-            dirs.remove("data")
-
-        for exclude in (
+        excludes = [
             ".svn",
             "_trial_temp",
             "build",
-        ):
+        ]
+
+        if root == ".":
+            excludes.append("data")
+
+        for exclude in excludes:
             if exclude in dirs:
                 dirs.remove(exclude)
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110608/91369f67/attachment.html>


More information about the calendarserver-changes mailing list