diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/build-rpm-package | 8 |
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 |