Skip to content

Commit

Permalink
filter out apk files
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbraun89 authored Apr 8, 2023
1 parent 892f355 commit 95a35cc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nanolayer/installers/gh_release/gh_release_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def __call__(self, asset: "GHReleaseInstaller.ReleaseAsset") -> bool:

CHECKSUMS_REGEX = "(\.pub$|\.sig$|\.text$|\.txt$|[Cc]hecksums|sha256)"

DISTRIBUTION_PACKAGES_REGEX = "(\.deb|\.rpm|\.pkg)"
DISTRIBUTION_PACKAGES_REGEX = "(\.deb|\.rpm|\.pkg|\.apk)"

class ReleaseAsset(BaseModel):
class Config:
Expand Down
8 changes: 8 additions & 0 deletions tests/installers/gh_release/test_gh_release_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,14 @@
"exa",
"linux/amd64",
),
( # .apk file
"duf --version",
0,
"mcr.microsoft.com/devcontainers/base:debian",
"muesli/duf",
"duf",
"linux/amd64",
),
(
"pwsh --version",
1,
Expand Down

0 comments on commit 95a35cc

Please sign in to comment.