diff options
author | Mihai Moldovan <ionic@ionic.de> | 2015-04-01 07:32:09 +0200 |
---|---|---|
committer | Mihai Moldovan <ionic@ionic.de> | 2015-04-01 07:32:58 +0200 |
commit | ebc7f12b4bc844a4de4818fe2e6fca206544e04f (patch) | |
tree | ea4985628eb07e0c6993c58960fb2daade094d4a | |
parent | 014e71963a120da2082994b1af083d884f117bd8 (diff) | |
download | buildscripts-ebc7f12b4bc844a4de4818fe2e6fca206544e04f.tar.gz buildscripts-ebc7f12b4bc844a4de4818fe2e6fca206544e04f.tar.bz2 buildscripts-ebc7f12b4bc844a4de4818fe2e6fca206544e04f.zip |
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...
-rwxr-xr-x | bin/build-rpm-package | 7 |
1 files changed, 7 insertions, 0 deletions
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. |