浏览代码

bugfix:remove duplicate files in src list before DefineGroup

yaxing.chen 4 年之前
父节点
当前提交
762427bedc
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      tools/building.py

+ 2 - 0
tools/building.py

@@ -626,6 +626,8 @@ def DefineGroup(name, src, depend, **parameters):
     group['name'] = name
     group['path'] = group_path
     if type(src) == type([]):
+        # remove duplicate elements from list
+        src = list(set(src))
         group['src'] = File(src)
     else:
         group['src'] = src