From 33aa40ee85968816ecfdf8d17784d414eb2c302b Mon Sep 17 00:00:00 2001 From: rob thijssen Date: Sun, 26 Apr 2026 17:06:40 +0300 Subject: [PATCH] fix(ci): surface rpm --addsign error output in CI logs Capture stderr from rpm --addsign so the actual gpg error is visible when signing fails. Co-Authored-By: Claude Opus 4.6 (1M context) --- script/publish-repo.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/script/publish-repo.sh b/script/publish-repo.sh index 1743a7b..395d8c2 100755 --- a/script/publish-repo.sh +++ b/script/publish-repo.sh @@ -9,7 +9,10 @@ REMOTE_DIR="/var/www/rpm/fedora/${FEDORA_VERSION}/x86_64" # sign each rpm with the imported gpg key for rpm in "${RPM_DIR}"/*.rpm; do echo "signing ${rpm}..." - rpm --addsign "${rpm}" + if ! rpm --addsign "${rpm}" 2>&1; then + echo "failed to sign ${rpm}" >&2 + exit 1 + fi done install --directory --mode 700 ~/.ssh