Skip to content

Commit

Permalink
Fix false x11/fallback-x11/wayland warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
barthalion committed Dec 1, 2023
1 parent dbb3586 commit 5192c12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions flatpak_builder_lint/builddir.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,8 @@ def parse_metadata(ini: str) -> dict:
if "sockets" in permissions:
permissions["socket"] = permissions.pop("sockets")

if (
"sockets" in permissions
and "x11" in permissions["socket"]
and "fallback-x11" in permissions["socket"]
):
permissions["socket"].remove("x11")
if "x11" in permissions["socket"] and "fallback-x11" in permissions["socket"]:
permissions["socket"].remove("x11")

if "devices" in permissions:
permissions["device"] = permissions.pop("devices")
Expand Down
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.0.22"
version = "2.0.23"
description = "A linter for flatpak-builder manifests"
authors = ["Bartłomiej Piotrowski <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 5192c12

Please sign in to comment.