ignore various files properly
authorMarc Fiuczynski <mef@cs.princeton.edu>
Thu, 25 Jun 2009 16:08:07 +0000 (16:08 +0000)
committerMarc Fiuczynski <mef@cs.princeton.edu>
Thu, 25 Jun 2009 16:08:07 +0000 (16:08 +0000)
db-config

index 2908a10..a66fa54 100755 (executable)
--- a/db-config
+++ b/db-config
@@ -1030,9 +1030,13 @@ message, please reply so that we may investigate the problem.
             
         ignored = (".bak","~",".rpmsave",".rpmnew",".orig")
         for file in files:
+            shouldIgnore = False
             for ignore in ignored:
-                if file.endswith(ignore): continue
-            execfile(os.path.join(dir, file))
+                if file.endswith(ignore):
+                    shouldIgnore = True
+                    break
+            if not shouldIgnore:
+                execfile(os.path.join(dir, file))
 
 if __name__ == '__main__':
     main()