we need to use a set tocheck uniqueness of paths for gbuild-to-ide script

Change-Id: Ic74655c18296e0b69b3f66a7a9ccea8e4c405dbf
This commit is contained in:
Markus Mohrhard
2015-09-14 19:25:14 +02:00
parent 6023b797c4
commit 0253f6e597

View File

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