[pacman-dev] [PATCH 1/2] repo-add: Generate unarmored DB signature
Johannes Löthberg
johannes at kyriasis.com
Tue May 26 09:46:08 UTC 2015
Pacman cannot handle armored signatures, so use gpg's --no-armor flag to
force an unarmored signature.
---
scripts/repo-add.sh.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in
index 3ece8d5..7e242ce 100644
--- a/scripts/repo-add.sh.in
+++ b/scripts/repo-add.sh.in
@@ -264,7 +264,7 @@ create_signature() {
if [[ -n $GPGKEY ]]; then
SIGNWITHKEY="-u ${GPGKEY}"
fi
- gpg --detach-sign --use-agent ${SIGNWITHKEY} "$dbfile" &>/dev/null || ret=$?
+ gpg --detach-sign --use-agent --no-armor ${SIGNWITHKEY} "$dbfile" &>/dev/null || ret=$?
if (( ! ret )); then
msg2 "$(gettext "Created signature file '%s'")" "${dbfile##*/.tmp.}.sig"
--
2.4.1
More information about the pacman-dev
mailing list