From: Johannes Berg Date: Fri, 5 Apr 2013 16:04:47 +0000 (+0200) Subject: gentree: fix file copying bug X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=235e420e10ffb9bbc1295f50fce16b798286f2bb;p=openwrt%2Fstaging%2Fblogic.git gentree: fix file copying bug Signed-off-by: Johannes Berg --- diff --git a/gentree.py b/gentree.py index 51959fd3fdcf..4257e16021df 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),