diff --git a/mesonbuild/interpreterbase/decorators.py b/mesonbuild/interpreterbase/decorators.py index c200d91db..9defb9966 100644 --- a/mesonbuild/interpreterbase/decorators.py +++ b/mesonbuild/interpreterbase/decorators.py @@ -658,7 +658,7 @@ class FeatureCheckBase(metaclass=abc.ABCMeta): fv = cls.feature_registry[subproject] tv = cls.get_target_version(subproject) for version in sorted(fv.keys()): - message = ', '.join(sorted(f"'{i[0]}'" for i in fv[version])) + message = ', '.join(sorted({f"'{i[0]}'" for i in fv[version]})) if cls.check_version(tv, version): notice_str += '\n * {}: {{{}}}'.format(version, message) else: diff --git a/test cases/common/40 options/test.json b/test cases/common/40 options/test.json index 3b34c4460..c7c7f0054 100644 --- a/test cases/common/40 options/test.json +++ b/test cases/common/40 options/test.json @@ -1,7 +1,7 @@ { "stdout": [ { - "line": " * 1.1.0: {'\"boolean option\" keyword argument \"value\" of type str', '\"boolean option\" keyword argument \"value\" of type str', '\"integer option\" keyword argument \"value\" of type str'}" + "line": " * 1.1.0: {'\"boolean option\" keyword argument \"value\" of type str', '\"integer option\" keyword argument \"value\" of type str'}" } ] }