summaryrefslogtreecommitdiff
path: root/gentree.py
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-04-05 18:04:47 +0200
committerJohannes Berg <johannes.berg@intel.com>2013-04-05 18:05:02 +0200
commit235e420e10ffb9bbc1295f50fce16b798286f2bb (patch)
treeed9b5bd45634553a652c18840cf68723fd622b43 /gentree.py
parent9a45123e37e8a57d361c7a1cb56b824d2c4e83f9 (diff)
gentree: fix file copying bug
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'gentree.py')
-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),