4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-18 09:03:31 +08:00

bugfix:remove duplicate files in src list before DefineGroup

This commit is contained in:
yaxing.chen 2021-03-05 17:13:18 +08:00
parent 1ea5135a28
commit 762427bedc

View File

@ -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