From 7a3fd16344e5b224c390a446b3f61d0963ff5512 Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Fri, 31 Oct 2025 16:44:41 -0400 Subject: [PATCH] Update patching logic --- bin/sync-aur | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/sync-aur b/bin/sync-aur index 861593d..6587485 100755 --- a/bin/sync-aur +++ b/bin/sync-aur @@ -98,7 +98,13 @@ fi cd "$PKGBUILDS_DIR" for dir in */; do if [[ -d "$dir/patches" ]]; then - (cd "$dir" && for patch in patches/*.patch; do patch -p1 --no-backup-if-mismatch < "$patch" 2>/dev/null || true; done) + print_info "Applying patches for $dir..." + (cd "$dir" && for patch in patches/*.patch; do + if ! patch -p1 --no-backup-if-mismatch < "$patch"; then + print_error "Failed to apply patch: $patch" + exit 1 + fi + done) fi done