[X2Go-Commits] [buildscripts] 01/01: bin/build-rpm-package: also pass through the line when detecting the start of yum config file.

git-admin at x2go.org git-admin at x2go.org
Wed Apr 1 10:57:16 CEST 2015


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository buildscripts.

commit 47938e2067c6e3b7b09872d324e0d4e337726143
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Wed Apr 1 10:57:10 2015 +0200

    bin/build-rpm-package: also pass through the line when detecting the start of yum config file.
---
 bin/build-rpm-package |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/bin/build-rpm-package b/bin/build-rpm-package
index 4c45159..94eaa61 100755
--- a/bin/build-rpm-package
+++ b/bin/build-rpm-package
@@ -358,6 +358,9 @@ create_mock_config () { # MOCK_BASE CUSTOM_REPO COMPONENT TARGET
 	while read line; do
 		if [[ "${line}" =~ ${TMP_REGEX} ]]; then
 			REPO_START=1
+
+			# Pass-through.
+			echo "${line}" >> "${TMP_MOCK_CFG_FILE}"
 		elif [ "${REPO_START}" -eq "1" ] && [[ "${line}" =~ ${TMP_REGEX_END} ]]; then
 			# Time to insert whatever is required.
 			printf '\n' >> "${TMP_MOCK_CFG_FILE}"
@@ -383,7 +386,7 @@ create_mock_config () { # MOCK_BASE CUSTOM_REPO COMPONENT TARGET
 			echo "Error: Parsing mock base config file failed: unexpected end of yum configuration, no start found." >&2
 			exit -1
 		else
-			# Write-through.
+			# Pass-through.
 			echo "${line}" >> "${TMP_MOCK_CFG_FILE}"
 		fi
 	done < "/etc/mock/${MOCK_BASE}"

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