Tools: Fix broken duplicate check for adding new libraries to the data structure

This commit is contained in:
Aaron Curtis 2014-06-06 09:28:11 -10:00 committed by Andrew Tridgell
parent 2f4af05f33
commit 068febda1f
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ for vehicle in vehicles:
setattr(l, field[0], field[1])
else:
error("unknown parameter metadata field '%s'" % field[0])
if l not in libraries:
if not any(l.name == parsed_l.name for parsed_l in libraries):
libraries.append(l)