gentree: fix file copying bug
authorJohannes Berg <johannes.berg@intel.com>
Fri, 5 Apr 2013 16:04:47 +0000 (18:04 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 5 Apr 2013 16:05:02 +0000 (18:05 +0200)
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
gentree.py

index 51959fd3fdcfc5fcab9c1c4ef51d54e0e6c401df..4257e16021df935bfb3dcd3fc67c4a6e6838cac7 100755 (executable)
@@ -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),