This is an automated email from the git hooks/post-receive script. x2go pushed a change to branch master in repository buildscripts. from 56b8bee bin/build-rpm-package: fix parse error. new 7b1270e bin/build-rpm-package: make OLDIFS variable local. new 178c291 bin/build-rpm-package: more curly braces! new 6b011ca bin/build-rpm-package: do not create a subshell in build_packages(), so that TMP_MOCK_CFG_DIR is actually modified in the main process. The 3 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 | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) -- 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 7b1270ef055254e1aa79fe065059efb085d9d271 Author: Mihai Moldovan <ionic@ionic.de> Date: Thu Apr 2 02:09:30 2015 +0200 bin/build-rpm-package: make OLDIFS variable local. --- bin/build-rpm-package | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/build-rpm-package b/bin/build-rpm-package index 1bb548d..9f83954 100755 --- a/bin/build-rpm-package +++ b/bin/build-rpm-package @@ -330,7 +330,7 @@ create_mock_config () { # MOCK_BASE CUSTOM_REPO COMPONENT TARGET fi # Save old input field separator value and set it to newline only. - OLDIFS="${IFS}" + typeset OLDIFS="${IFS}" IFS="$(printf '\n')" # Fetch the requested lines from ${CUSTOM_REPO} and store them in arrays. -- 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 178c291d22ce4a410643c3b9e073f3afd1726ad3 Author: Mihai Moldovan <ionic@ionic.de> Date: Thu Apr 2 02:09:50 2015 +0200 bin/build-rpm-package: more curly braces! --- bin/build-rpm-package | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/build-rpm-package b/bin/build-rpm-package index 9f83954..e6f42a9 100755 --- a/bin/build-rpm-package +++ b/bin/build-rpm-package @@ -808,7 +808,7 @@ build_packages() { done } done - rm -Rf "$TEMP_DIR" + rm -Rf "${TEMP_DIR}" return 0 } -- 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 6b011cad6a6d59535d1d1fe810a5ba5774e2ec5b Author: Mihai Moldovan <ionic@ionic.de> Date: Thu Apr 2 02:10:12 2015 +0200 bin/build-rpm-package: do not create a subshell in build_packages(), so that TMP_MOCK_CFG_DIR is actually modified in the main process. --- bin/build-rpm-package | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bin/build-rpm-package b/bin/build-rpm-package index e6f42a9..ecf699c 100755 --- a/bin/build-rpm-package +++ b/bin/build-rpm-package @@ -560,7 +560,15 @@ clear_pkgdist() { } build_packages() { - echo "$RPM_BUILD_FOR" | sed -e 's/ /\n/g' | while read line; do + # Do spawn a subshell here. Functions like get_extra_repository() need to + # change global variables in the main process. + typeset -a RPM_BUILD_FOR_ARR + typeset OLDIFS="${IFS}" + IFS=" " + read -a RPM_BUILD_FOR_ARR <<< "${RPM_BUILD_FOR}" + IFS="${OLDIFS}" + + for line in "${RPM_BUILD_FOR_ARR[@]}"; do l_DIST="$(echo ${line/: /:} | cut -d":" -f1 | tr [:upper:] [:lower:])" l_CODENAMES="${CODENAMES:-$(echo ${line/: /:} | cut -d":" -f2- | sed -e 's/,/ /g' | tr [:upper:] [:lower:])}" echo "$RPM_DISTS_SUPPORTED" | grep $l_DIST >/dev/null && { -- Alioth's /srv/git/code.x2go.org/buildscripts.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/buildscripts.git