From 8dd1ca355a67884ad722f61c3a68396605fbfc15 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 21 Oct 2026 00:32:26 +0000 Subject: [PATCH] aur: retry a failed AUR build once; don't abort post-install on one app yay builds dependencies first; when one fails transiently (libpdfium-nojs hit a broken download in prepare()), yay retries the dependency but drops the package that needs it (yacreader: "Missing dependencies"). Under set -e that aborted the whole post-install. _install_aur now retries once and returns 1 (recording the pkg in _aur_failed) if both attempts fail. post-install tolerates failures of its optional AUR apps and lists them at the end; enable-limine-snapshots still aborts, since it needs its packages. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012pNTgiWNwQg9cE63aUxicE --- setup/lib/aur.sh | 33 ++++++++++++++++++++++++++------- setup/post-install.sh | 40 +++++++++++++++++++++++----------------- 2 files changed, 49 insertions(+), 24 deletions(-) diff --git a/setup/lib/aur.sh b/setup/lib/aur.sh index cd69736..7834d0c 100644 --- a/setup/lib/aur.sh +++ b/setup/lib/aur.sh @@ -3,11 +3,13 @@ # Callers must define the color vars: B S F O T R. _aur_fresh=0 +_aur_failed=() # Local: install AUR pkg on the current system. # Usage: _install_aur