From d8d156517b11829440b3a0be234fc9d7629ef383 Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Fri, 20 Feb 2026 03:42:27 +0000
Subject: [PATCH] feat: Add Arch Linux PKGBUILD for package creation and enhance Git clone error handling in the builder.
---
src/archrepobuild/resolver.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/archrepobuild/resolver.py b/src/archrepobuild/resolver.py
index 1fc9b2f..027e550 100644
--- a/src/archrepobuild/resolver.py
+++ b/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.
--
Gitblit v1.10.0