From 2105efaacd2dca5b77fc8940a388dd540d8a473d Mon Sep 17 00:00:00 2001 From: bbhtt Date: Wed, 7 Aug 2024 14:40:57 +0530 Subject: [PATCH] Add missing "appstream-multiple-components" error --- flatpak_builder_lint/checks/desktop.py | 1 + flatpak_builder_lint/checks/screenshots.py | 1 + 2 files changed, 2 insertions(+) diff --git a/flatpak_builder_lint/checks/desktop.py b/flatpak_builder_lint/checks/desktop.py index 104c446b..aeb092ca 100644 --- a/flatpak_builder_lint/checks/desktop.py +++ b/flatpak_builder_lint/checks/desktop.py @@ -44,6 +44,7 @@ def _validate(self, path: str, appid: str) -> None: return None if len(appstream.components(appstream_path)) != 1: + self.errors.add("appstream-multiple-components") return None if appstream.component_type(appstream_path) not in ( diff --git a/flatpak_builder_lint/checks/screenshots.py b/flatpak_builder_lint/checks/screenshots.py index 67aa2eb4..ed0e3478 100644 --- a/flatpak_builder_lint/checks/screenshots.py +++ b/flatpak_builder_lint/checks/screenshots.py @@ -27,6 +27,7 @@ def check_repo(self, path: str) -> None: return if len(appstream.components(appstream_path)) != 1: + self.errors.add("appstream-multiple-components") return if appstream.component_type(appstream_path) not in (