[X2Go-Commits] [buildscripts] 06/06: bin/build-rpm-package: add some boilerplate code for reading in config files.

git-admin at x2go.org git-admin at x2go.org
Wed Apr 1 07:34:42 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 a6bf0b9a5b83187e8ecb2b0d824e6c8997f7f0a5
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Wed Apr 1 07:34:13 2015 +0200

    bin/build-rpm-package: add some boilerplate code for reading in config files.
---
 bin/build-rpm-package |   12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/bin/build-rpm-package b/bin/build-rpm-package
index 10fc0fb..f088bb9 100755
--- a/bin/build-rpm-package
+++ b/bin/build-rpm-package
@@ -301,6 +301,18 @@ create_mock_config () { # MOCK_BASE CUSTOM_REPO COMPONENT TARGET
 		echo "Error: creating mock temporary config file failed. Aborting." >&2
 		exit -1
 	fi
+
+	# Fetch the requested lines from ${CUSTOM_REPO} and store them in an array.
+	typeset -a extra_repo
+	typeset -i FETCH_SECTION=0
+	while read line; do
+
+	done < "/etc/mock/${CUSTOM_REPO}"
+
+	typeset -i REPO_START=0
+	while read line; do
+
+	done < "/etc/mock/${MOCK_BASE}"
 }
 
 get_extra_repository () {

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