Merge pull request #352 from grissiom/fix-tools-srcremove-st

tools: fix SrcRemove on empty src
This commit is contained in:
Bernard Xiong
2014-10-08 22:10:25 +08:00

View File

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