From 1b73c2568f87549e11024472a45a25db011e4b17 Mon Sep 17 00:00:00 2001 From: bbhtt Date: Tue, 18 Jun 2024 22:52:06 +0530 Subject: [PATCH] cli: Remove duplicates from info output --- flatpak_builder_lint/cli.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/flatpak_builder_lint/cli.py b/flatpak_builder_lint/cli.py index b25aeb6d..44021ffb 100644 --- a/flatpak_builder_lint/cli.py +++ b/flatpak_builder_lint/cli.py @@ -114,12 +114,16 @@ def run_checks( if "desktop-file-failed-validation" in set(exceptions): results.pop("desktopfile") - results["info"] = [ - i - for i in info - for j in set(exceptions) - if i is not None and not i.startswith(j) - ] + results["info"] = list( + set( + [ + i + for i in set(info) + for j in set(exceptions) + if i is not None and not i.startswith(j) + ] + ) + ) if not results["info"]: results.pop("info")