summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgentree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gentree.py b/gentree.py
index 51959fd3..4257e160 100755
--- a/gentree.py
+++ b/gentree.py
@@ -137,7 +137,7 @@ def copy_files(srcpath, copy_list, outdir):
def copy_ignore(dir, entries):
r = []
for i in entries:
- if i[-1] in ('o', '~'):
+ if i[-2] == '.o' or i[-1] == '~':
r.append(i)
return r
copytree(os.path.join(srcpath, srcitem),