summaryrefslogtreecommitdiff
path: root/bin/build-rpm-package
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2015-03-23 05:23:55 +0100
committerMihai Moldovan <ionic@ionic.de>2015-03-23 05:23:55 +0100
commit7aa6ef6f6ab88586e246ca4434513de5c777a523 (patch)
treef48e4119c0ca643c594430c61a0fc167b69257f6 /bin/build-rpm-package
parenta7ce3d68c11f945307848d913096eb5192ea6966 (diff)
downloadbuildscripts-7aa6ef6f6ab88586e246ca4434513de5c777a523.tar.gz
buildscripts-7aa6ef6f6ab88586e246ca4434513de5c777a523.tar.bz2
buildscripts-7aa6ef6f6ab88586e246ca4434513de5c777a523.zip
bin/build-rpm-package: fix typos.
Diffstat (limited to 'bin/build-rpm-package')
-rwxr-xr-xbin/build-rpm-package8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/build-rpm-package b/bin/build-rpm-package
index eea1821..b99acbe 100755
--- a/bin/build-rpm-package
+++ b/bin/build-rpm-package
@@ -125,12 +125,12 @@ get_extra_repository () {
;;
"redhat")
# Always use -r.
- ret="-r "
+ ret="-r"
if [ -n "${RPM_MOCK_CONFIG_DIR}" ]; then
# FIXME: these files should probably be autogenerated to lessen maintenance load.
# Add config base dir if specified.
- ret="${ret} ${RPM_MOCK_CONFIG_DIR}"
+ ret="${ret} ${RPM_MOCK_CONFIG_DIR}/"
# Mock config file names shall follow the format:
# distname-distversion-arch[-component-extra_repo_base_name[-extra_repo_full_name]]
@@ -138,11 +138,11 @@ get_extra_repository () {
# ^------- default -------^ ^--- for extras ---^^--- for everything ---^
# Add mandatory, default value.
- ret="${ret} ${DIST}-${CODENAME}-${ARCH}"
+ ret="${ret}${DIST}-${CODENAME}-${ARCH}"
if [ -n "${RPM_EXTRA_REPO_MOCK_CONFIG_BASE_NAME}" ]; then
ret="${ret}-${COMPONENT}-${RPM_EXTRA_REPO_MOCK_CONFIG_BASE_NAME}"
- if [-n "${RPM_EXTRA_REPO_MOCK_CONFIG_FULL_NAME}" ] && [ -z "${PACKAGE_WITHOUT_OTHERMIRROR}" ] || \
+ if [ -n "${RPM_EXTRA_REPO_MOCK_CONFIG_FULL_NAME}" ] && [ -z "${PACKAGE_WITHOUT_OTHERMIRROR}" ] || \
[ "${PACKAGE_WITHOUT_OTHERMIRROR}" != "${PACKAGE}" ]; then
ret="${ret}-${RPM_EXTRA_REPO_MOCK_CONFIG_FULL_NAME}"
fi