diff --git a/nanolayer/installers/gh_release/resolvers/asset_resolver.py b/nanolayer/installers/gh_release/resolvers/asset_resolver.py index bead653d..636ae690 100644 --- a/nanolayer/installers/gh_release/resolvers/asset_resolver.py +++ b/nanolayer/installers/gh_release/resolvers/asset_resolver.py @@ -86,6 +86,7 @@ def __init__(self, name: str, regex: str, negative: bool) -> None: self.negative = negative def __call__(self, asset: "AssetResolver.ReleaseAsset") -> bool: + print(self.name) matches = len(re.findall(self.regex, asset.name)) return matches > 0 if not self.negative else matches == 0 @@ -177,7 +178,7 @@ def resolve( # add all non-current bitness as a negative filters bad_bitness_regexes = deepcopy(cls.BITNESS_REGEX_MAP) bad_bitness_regexes.pop(LinuxInformationDesk.get_bitness()) - negative_platform_filters = [ + negative_bitness_filters = [ cls.FindAllRegexFilter(name=name, regex=regex, negative=True) for name, regex in bad_bitness_regexes.items() ] @@ -190,6 +191,7 @@ def resolve( negative_architecture_filters + negative_misc_filters + negative_platform_filters + + negative_bitness_filters ) ), assets,