Skip to content

Commit

Permalink
screenshots: Error if there are no mirrored screenshots
Browse files Browse the repository at this point in the history
barthalion committed Jan 16, 2024
1 parent 19fab0b commit a12ca53
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion flatpak_builder_lint/checks/screenshots.py
Original file line number Diff line number Diff line change
@@ -51,7 +51,8 @@ def check_repo(self, path: str) -> None:
screenshots = appstream.components(appstream_path)[0].xpath(
"screenshots/screenshot/image"
)
if screenshots is None:
thumbnails = [elem for elem in screenshots if elem.attrib.get("type") == "thumbnail"]
if not thumbnails:
self.errors.add("appstream-missing-screenshots")
return

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "flatpak_builder_lint"
version = "2.1.2"
version = "2.1.3"
description = "A linter for flatpak-builder manifests"
authors = ["Bartłomiej Piotrowski <[email protected]>"]
license = "MIT"

0 comments on commit a12ca53

Please sign in to comment.