summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2015-04-01 10:57:10 +0200
committerMihai Moldovan <ionic@ionic.de>2015-04-01 10:57:10 +0200
commit47938e2067c6e3b7b09872d324e0d4e337726143 (patch)
treea0639aa91ff384507c27f569e4838bb80c241734
parentc5b511201837be705a8356c93c4da49cae7e070b (diff)
downloadbuildscripts-47938e2067c6e3b7b09872d324e0d4e337726143.tar.gz
buildscripts-47938e2067c6e3b7b09872d324e0d4e337726143.tar.bz2
buildscripts-47938e2067c6e3b7b09872d324e0d4e337726143.zip
bin/build-rpm-package: also pass through the line when detecting the start of yum config file.
-rwxr-xr-xbin/build-rpm-package5
1 files changed, 4 insertions, 1 deletions
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}"