This is an automated email from the git hooks/post-receive script. x2go pushed a change to branch master in repository buildscripts. from 8f75690 bin/build-rpm-package: try to add suse@ tag to repositories. new 21264ac bin/build-rpm-package: extract major version from l_CODENAME for *SUSE and compare only that. The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Summary of changes: bin/build-rpm-package | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) -- Alioth's /srv/git/code.x2go.org/buildscripts.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/buildscripts.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository buildscripts. commit 21264acbe6c7cf467aee08bc752c9e393feba7ff Author: Mihai Moldovan <ionic@ionic.de> Date: Fri Nov 25 03:32:51 2016 +0100 bin/build-rpm-package: extract major version from l_CODENAME for *SUSE and compare only that. --- bin/build-rpm-package | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/bin/build-rpm-package b/bin/build-rpm-package index c970bbe..b19bc38 100755 --- a/bin/build-rpm-package +++ b/bin/build-rpm-package @@ -972,7 +972,16 @@ upload_packages() { typeset distro_string="" if [ "${l_DIST}" = "opensuse" ]; then distro_string="OpenSuSE:" - [ "${l_CODENAME}" -gt "13" ] && distro_string="${distro_string}Leap:" + + typeset -i tmp_suse_major_version="0" + tmp_suse_major_version="$(sed -e 's/\([0-9]*\).*/\1/' <<< "${l_CODENAME}")" + + if [ "x${tmp_suse_major_version}" = "x0" ]; then + echo "Unable to extract SUSE version." + exit 1 + fi + + [ "${tmp_suse_major_version}" -gt "13" ] && distro_string="${distro_string}Leap:" distro_string="${distro_string}${l_CODENAME}" else distro_string="SLE:" -- Alioth's /srv/git/code.x2go.org/buildscripts.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/buildscripts.git