[X2Go-Commits] [buildscripts] 01/01: bin/createsusetagsrepo: convert hexadecimal strings to lowercase for RPM GPG keys, just in case.
git-admin at x2go.org
git-admin at x2go.org
Sun Dec 4 07:51:25 CET 2016
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository buildscripts.
commit 4c3acb6504e615120fb0a96e0cf329c166be10ef
Author: Mihai Moldovan <ionic at ionic.de>
Date: Sun Dec 4 07:51:19 2016 +0100
bin/createsusetagsrepo: convert hexadecimal strings to lowercase for RPM GPG keys, just in case.
---
bin/createsusetagsrepo | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/bin/createsusetagsrepo b/bin/createsusetagsrepo
index 92ce6dd..e0f5d32 100755
--- a/bin/createsusetagsrepo
+++ b/bin/createsusetagsrepo
@@ -127,6 +127,8 @@ sign_metadata () {
exit "1"
fi
+ key_id_short="$(tr '[:upper:]' '[:lower:]' <<< "${key_id_short}")"
+
typeset key_creation_date=""
key_creation_date="$(gpg --list-packets --verbose < 'content.key' 2>/dev/null | grep -Em 1 'created [0-9][0-9]*,' | sed -e '/.*created \([0-9][0-9]*\), .*/!d;s//\1/')"
@@ -142,6 +144,8 @@ sign_metadata () {
exit "1"
fi
+ key_creation_date="$(tr '[:upper:]' '[:lower:]' <<< "${key_creation_date}")"
+
rpm_key_file_name="${rpm_key_file_name}${key_id_short}-${key_creation_date}.asc"
test -e "${rpm_key_file_name}" || cp -av 'content.key' "${rpm_key_file_name}"
--
Alioth's /srv/git/code.x2go.org/buildscripts.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/buildscripts.git
More information about the x2go-commits
mailing list