diff options
-rwxr-xr-x | bin/build-rpm-package | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/build-rpm-package b/bin/build-rpm-package index 8409321..20f3d7d 100755 --- a/bin/build-rpm-package +++ b/bin/build-rpm-package @@ -360,6 +360,8 @@ create_mock_config () { # MOCK_BASE CUSTOM_REPO COMPONENT TARGET echo "${full_repo[${i}]}" >> "${TMP_MOCK_CFG_FILE}" done fi + + echo "${line}" >> "${TMP_MOCK_CFG_FILE}" elif [ "${REPO_START}" -eq "0" ] && [[ "${line}" =~ ${TMP_REGEX_END} ]]; then echo "Error: Parsing mock base config file failed: unexpected end of yum configuration, no start found." >&2 exit -1 @@ -368,6 +370,12 @@ create_mock_config () { # MOCK_BASE CUSTOM_REPO COMPONENT TARGET echo "${line}" >> "${TMP_MOCK_CFG_FILE}" fi done < "/etc/mock/${MOCK_BASE}" + + # Reset input field separator to original value. + IFS="${OLDIFS}" + + # Strictly speaking not necessary, but do it anyway. + printf "${TMP_MOCK_CFG_FILE}" } get_extra_repository () { |