1
0
Эх сурвалжийг харах

bugfix:remove duplicate files in src list before DefineGroup

yaxing.chen 4 жил өмнө
parent
commit
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