mirror of https://github.com/Chizi123/Arch-autobuild-repo.git

Joel Grunbaum
yesterday e2540e4fa8befd64dda124d17f456ee584f8e02e
src/archrepobuild/resolver.py
@@ -105,7 +105,7 @@
            logger.warning(f"Failed to get pacman package list: {e}")
            self._pacman_cache = {}
    def is_in_repos(self, name: str, include_all: bool = True) -> bool:
    def is_in_repos(self, name: str, include_all: bool = True) -> str | None:
        """Check if package is available in repositories.
        Args:
@@ -113,7 +113,7 @@
            include_all: If True, check all enabled repos. If False, only official ones.
        Returns:
            True if available in repos
            Name of repository where package was found, or None if not found
        """
        if not self._pacman_checked:
            self._refresh_pacman_cache()
@@ -125,8 +125,8 @@
            if not include_all and repo not in OFFICIAL_REPOS:
                continue
            if base_name in pkgs:
                return True
        return False
                return repo
        return None
    def is_installed(self, name: str) -> bool:
        """Check if package is already installed.