[X2Go-Commits] [buildscripts] 05/06: bin/build-rpm-package: rename main => release and heuler => nightly in create_mock_config(). This is what the x2go.repo files do and codenames are weird anyway...

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

    bin/build-rpm-package: rename main => release and heuler => nightly in create_mock_config(). This is what the x2go.repo files do and codenames are weird anyway...
---
 bin/build-rpm-package |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/bin/build-rpm-package b/bin/build-rpm-package
index 2614d16..10fc0fb 100755
--- a/bin/build-rpm-package
+++ b/bin/build-rpm-package
@@ -274,6 +274,13 @@ create_mock_config () { # MOCK_BASE CUSTOM_REPO COMPONENT TARGET
 		DISTRO="${BASH_REMATCH[1]}"
 	fi
 
+	# Rename "main" to "release" and "heuler" to "nightly".
+	if [ "${COMPONENT}" = "main" ]; then
+		COMPONENT="release"
+	elif [ "${COMPONENT}" = "heuler" ]; then
+		COMPONENT="nightly"
+	fi
+
 	# Note: there is no way to check for the component's validity,
 	# as LTS releases have "random" names assigned to them.
 

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