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 (