From 068febda1fdd2d5f920ff300a3b7bb254bb2245d Mon Sep 17 00:00:00 2001 From: Aaron Curtis Date: Fri, 6 Jun 2014 09:28:11 -1000 Subject: [PATCH] Tools: Fix broken duplicate check for adding new libraries to the data structure --- Tools/autotest/param_metadata/param_parse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/autotest/param_metadata/param_parse.py b/Tools/autotest/param_metadata/param_parse.py index 7fc2464562..ef4dd34e01 100755 --- a/Tools/autotest/param_metadata/param_parse.py +++ b/Tools/autotest/param_metadata/param_parse.py @@ -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)