summaryrefslogtreecommitdiff
path: root/gentree.py
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-04-16 14:20:00 +0200
committerJohannes Berg <johannes.berg@intel.com>2013-04-16 14:20:00 +0200
commit805b01f10348428852e41725a71f3e2dcd66509c (patch)
treec660f9dc0c6a11d2d8f2cb58552c7d39833747ec /gentree.py
parent11226c267cb75071ddcc54f5d37aab7932400bad (diff)
gentree: fix typo in ignore list handling
We don't want to compare the second-to-last letter with a two-character string, that'll never be true anyway ... It should compare the last two letters. 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 3ba73eaf..5ae88706 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[-2] == '.o' or i[-1] == '~':
+ if i[-2:] == '.o' or i[-1] == '~':
r.append(i)
return r
copytree(os.path.join(srcpath, srcitem),