Explorar o código

bugfix:remove duplicate files in src list before DefineGroup

yaxing.chen %!s(int64=4) %!d(string=hai) anos
pai
achega
762427bedc
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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