From 95a35cc702fcd8a17b41ccde6cddf6294ddab60f Mon Sep 17 00:00:00 2001 From: Daniel Braun Date: Sat, 8 Apr 2023 17:08:59 +0000 Subject: [PATCH] filter out apk files --- nanolayer/installers/gh_release/gh_release_installer.py | 2 +- tests/installers/gh_release/test_gh_release_installer.py | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/nanolayer/installers/gh_release/gh_release_installer.py b/nanolayer/installers/gh_release/gh_release_installer.py index 9f586c94..db9912f9 100644 --- a/nanolayer/installers/gh_release/gh_release_installer.py +++ b/nanolayer/installers/gh_release/gh_release_installer.py @@ -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: diff --git a/tests/installers/gh_release/test_gh_release_installer.py b/tests/installers/gh_release/test_gh_release_installer.py index 30bec7a6..a17c07b7 100644 --- a/tests/installers/gh_release/test_gh_release_installer.py +++ b/tests/installers/gh_release/test_gh_release_installer.py @@ -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,