[X2Go-Commits] [buildscripts] 02/06: bin/createsusetagsrepo: add gpg-key and sha256 parameters.

git-admin at x2go.org git-admin at x2go.org
Sun Dec 4 06:54:35 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 9ff77d2468338d76ace3a9f722af3095b64a42e2
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Sun Dec 4 04:31:23 2016 +0100

    bin/createsusetagsrepo: add gpg-key and sha256 parameters.
---
 bin/createsusetagsrepo |   15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/bin/createsusetagsrepo b/bin/createsusetagsrepo
index 917b61e..c1dcf93 100755
--- a/bin/createsusetagsrepo
+++ b/bin/createsusetagsrepo
@@ -20,8 +20,12 @@ export PATH="${HOME}/bin:${PATH}"
 # ${CDPATH} could lead to some very nasty problems. Better unset it.
 unset CDPATH
 
+typeset script_path="$(dirname "$(readlink -e "${BASH_SOURCE}")")"
+
+. "${script_path}/common.sh"
+
 usage () {
-  echo "Usage: $(basename "${0}") <top-directory-of-repository> <distro> <component>" >&2
+  echo "Usage: $(basename "${0}") <top-directory-of-repository> <distro> <component> <gpg-key> <boolean_sha256>" >&2
   exit "1"
 }
 
@@ -108,10 +112,19 @@ set -e
 repo_top_dir="${1}"
 distro="${2}"
 component="${3}"
+gpg_key="${4}"
+boolean_sha256="${5}"
 
 test -z "${repo_top_dir}" && usage
 test -z "${distro}" && usage
 test -z "${component}" && usage
+test -z "${gpg_key}" && usage
+
+if [ -z "${boolean_sha256}" ]; then
+  boolean_sha256="1"
+fi
+
+boolean_sha256="$(make_boolean "${boolean_sha256}")"
 
 cd "${repo_top_dir}" || error "Unable to switch to provided repository top directory '${repo_top_dir}'."
 

--
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