From 47938e2067c6e3b7b09872d324e0d4e337726143 Mon Sep 17 00:00:00 2001 From: Mihai Moldovan Date: Wed, 1 Apr 2015 10:57:10 +0200 Subject: 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(-) (limited to 'bin') 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}" -- cgit v1.2.3