From fdd5bc9b7c90aea952bd3c3058e2495d5d015cf2 Mon Sep 17 00:00:00 2001
From: Harald Pfeiffer <coding@lirion.de>
Date: Sun, 23 Mar 2025 08:02:24 +0100
Subject: Do not hardcode GPG ID, also split signature command over multiple
 lines

---
 createrepo/bin/createrepo-lirionde | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/createrepo/bin/createrepo-lirionde b/createrepo/bin/createrepo-lirionde
index bc3329a..0536f1b 100755
--- a/createrepo/bin/createrepo-lirionde
+++ b/createrepo/bin/createrepo-lirionde
@@ -65,7 +65,9 @@ rm -f "$MYTMP" "${MYTMP}.asc" || exit 112
 printf 'done.\n'
 
 for repo in "${REPOS[@]}"; do
-	faketime "$(date -I) 13:37:08" createrepo_c --update "/var/cache/rpm/$repo" &&\
-	rm -vf "/var/cache/rpm/${repo}/repodata/repomd.xml.asc" &&\
-	faketime "$(date -I) 13:37:08" gpg --local-user 0x5421594BF1AB46F4 --detach-sign --armour "/var/cache/rpm/${repo}/repodata/repomd.xml"
+	faketime "$(date -I) 13:37:08" createrepo_c --update "/var/cache/rpm/$repo" || exit 120
+	rm -vf "/var/cache/rpm/${repo}/repodata/repomd.xml.asc" || exit 121
+	faketime "$(date -I) 13:37:08" gpg --local-user "$GPGID" \
+		--detach-sign --armour "/var/cache/rpm/${repo}/repodata/repomd.xml" \
+		|| exit 122
 done
-- 
cgit v1.2.3