[or-cvs] r21644: {projects} More fault tolerance in package building (projects/gettor/lib/gettor)

Christian Fromme kaner at strace.org
Sun Feb 14 22:35:58 UTC 2010


Author: kaner
Date: 2010-02-14 22:35:58 +0000 (Sun, 14 Feb 2010)
New Revision: 21644

Modified:
   projects/gettor/lib/gettor/packages.py
Log:
More fault tolerance in package building


Modified: projects/gettor/lib/gettor/packages.py
===================================================================
--- projects/gettor/lib/gettor/packages.py	2010-02-14 22:29:36 UTC (rev 21643)
+++ projects/gettor/lib/gettor/packages.py	2010-02-14 22:35:58 UTC (rev 21644)
@@ -99,8 +99,8 @@
         for (pack, (regex_single, regex_split)) in self.packageRegex.items():
             for dirname in os.listdir(self.distDir):
                 subdir = os.path.join(self.distDir, dirname)
-                # Ignore non-dir directory members
-                if not os.path.isdir(subdir):
+                # Ignore non-dir directory members and non-gettor dirs
+                if not os.path.isdir(subdir) or not subdir.startswith("_"):
                     continue
                 for filename in os.listdir(subdir):
                     # Splitfile hacks. XXX: Refactor



More information about the tor-commits mailing list