projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a45123
)
gentree: fix file copying bug
author
Johannes Berg
<johannes.berg@intel.com>
Fri, 5 Apr 2013 16:04:47 +0000
(18:04 +0200)
committer
Johannes 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
patch
|
blob
|
history
diff --git
a/gentree.py
b/gentree.py
index 51959fd3fdcfc5fcab9c1c4ef51d54e0e6c401df..4257e16021df935bfb3dcd3fc67c4a6e6838cac7 100755
(executable)
--- 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),