diff options
author | Johannes Berg <johannes.berg@intel.com> | 2013-04-16 14:20:00 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-04-16 14:20:00 +0200 |
commit | 805b01f10348428852e41725a71f3e2dcd66509c (patch) | |
tree | c660f9dc0c6a11d2d8f2cb58552c7d39833747ec /gentree.py | |
parent | 11226c267cb75071ddcc54f5d37aab7932400bad (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-x | gentree.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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), |