summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/build-rpm-package4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/build-rpm-package b/bin/build-rpm-package
index be686c9..cc7d304 100755
--- a/bin/build-rpm-package
+++ b/bin/build-rpm-package
@@ -257,8 +257,8 @@ create_mock_config () { # MOCK_BASE CUSTOM_REPO COMPONENT TARGET
# Check argument sanity.
typeset DISTRO=""
- typeset TMP_REGEX='^([[:alpha:]]+)-[[:alnum:]]+-[[:alnum:]].cfg$'
- # distribution - version - arch
+ # distribution - version - arch
+ typeset TMP_REGEX='^([[:alpha:]]+)-[[:alnum:]_-]+-[[:alnum]_-]+\.cfg$'
if [[ ! "${MOCK_BASE}" =~ ${TMP_REGEX} ]]; then
echo "Error: MOCK_BASE parameter not well formed. Must be: 'distro-version-arch.cfg'." >&2
exit -1