we need to use a set tocheck uniqueness of paths for gbuild-to-ide script
Change-Id: Ic74655c18296e0b69b3f66a7a9ccea8e4c405dbf
This commit is contained in:
@@ -226,9 +226,9 @@ class GbuildParser:
|
||||
self.target_by_path[path] = set()
|
||||
self.target_by_path[path] |= set([target])
|
||||
for path in self.target_by_path:
|
||||
if len(self.target_by_path[path]) > 1:
|
||||
if len(set(self.target_by_path[path])) > 1:
|
||||
print('fdo#70422: multiple target use dir %s: %s' % (
|
||||
path, ', '.join([target.short_name() for target in self.target_by_path[path]])))
|
||||
path, ', '.join([target.short_name() for target in set(self.target_by_path[path])])))
|
||||
|
||||
return self
|
||||
|
||||
|
Reference in New Issue
Block a user