summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-09-14 19:25:14 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-09-14 19:30:35 +0200
commit0253f6e5975429d393fb581056a9d102c9f7da2c (patch)
treeef67c979267789d7648e4c3133e5cddbce374279 /bin
parent6023b797c4570b69d0511b0a45bcf67932f32ba6 (diff)
we need to use a set tocheck uniqueness of paths for gbuild-to-ide script
Change-Id: Ic74655c18296e0b69b3f66a7a9ccea8e4c405dbf
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gbuild-to-ide4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/gbuild-to-ide b/bin/gbuild-to-ide
index 4ad7d4b025ed..5190faea542c 100755
--- a/bin/gbuild-to-ide
+++ b/bin/gbuild-to-ide
@@ -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