git://git.onelab.eu
/
myplc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
892604f
)
ignore various files properly
author
Marc Fiuczynski
<mef@cs.princeton.edu>
Thu, 25 Jun 2009 16:08:07 +0000
(16:08 +0000)
committer
Marc Fiuczynski
<mef@cs.princeton.edu>
Thu, 25 Jun 2009 16:08:07 +0000
(16:08 +0000)
db-config
patch
|
blob
|
history
diff --git
a/db-config
b/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()