From ebc7f12b4bc844a4de4818fe2e6fca206544e04f Mon Sep 17 00:00:00 2001 From: Mihai Moldovan Date: Wed, 1 Apr 2015 07:32:09 +0200 Subject: 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. -- cgit v1.2.3