Merge pull request #351 from grissiom/fix-tools-srcremove

tools: fix SrcRemove on empty src
This commit is contained in:
Bernard Xiong 2014-10-08 22:10:13 +08:00
commit a4bb77d097
1 changed files with 3 additions and 0 deletions

View File

@ -495,6 +495,9 @@ def EndBuilding(target, program = None):
CscopeDatabase(Projects) CscopeDatabase(Projects)
def SrcRemove(src, remove): def SrcRemove(src, remove):
if not src:
return
if type(src[0]) == type('str'): if type(src[0]) == type('str'):
for item in src: for item in src:
if os.path.basename(item) in remove: if os.path.basename(item) in remove: