Skip to content

Commit

Permalink
Add missing "appstream-multiple-components" error
Browse files Browse the repository at this point in the history
  • Loading branch information
bbhtt committed Aug 7, 2024
1 parent ee08cf1 commit 2105efa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions flatpak_builder_lint/checks/desktop.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
1 change: 1 addition & 0 deletions flatpak_builder_lint/checks/screenshots.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 2105efa

Please sign in to comment.