From 0181e3f9d900809c90c6864bbb966d80e4f37ba3 Mon Sep 17 00:00:00 2001 From: Josephine Pfeiffer Date: Thu, 23 Apr 2026 23:25:06 +0200 Subject: [PATCH] fix: only route -G through ABS for official Arch repos When a target is present in both the AUR and a custom pacman syncdb (e.g. a local prebuilt AUR cache repo), paru -G routed the target through pkgctl repo clone against gitlab.archlinux.org, which then prompted for credentials on a non-existent GitLab repo instead of falling back to the AUR. Restore the pre-existing gate on is_arch_repo so only targets from core/extra/multilib/testing are treated as ABS. Signed-off-by: Josephine Pfeiffer --- src/download.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/download.rs b/src/download.rs index 873bc61b..a588ab9e 100644 --- a/src/download.rs +++ b/src/download.rs @@ -519,9 +519,13 @@ fn split_target_pkgbuilds<'a, T: AsTarg>( for targ in targets { let targ = targ.as_targ(); - if config.mode.repo() && db.find_target(targ).is_ok() { - local.push(targ); - continue; + if config.mode.repo() { + if let Ok(pkg) = db.find_target(targ) { + if is_arch_repo(pkg.db().unwrap().name()) { + local.push(targ); + continue; + } + } } if config.mode.pkgbuild() {