diff options
author | Mihai Moldovan <ionic@ionic.de> | 2015-04-01 12:34:54 +0200 |
---|---|---|
committer | Mihai Moldovan <ionic@ionic.de> | 2015-04-01 12:34:54 +0200 |
commit | 115540dc06068205fc52b332c644a80c81a01d36 (patch) | |
tree | e8b213f60968029847c252c623e5f7dac9d38df2 /bin/build-rpm-package | |
parent | 79ce5a0d5b415c21acd458cbcf3ba89996ab51aa (diff) | |
download | buildscripts-115540dc06068205fc52b332c644a80c81a01d36.tar.gz buildscripts-115540dc06068205fc52b332c644a80c81a01d36.tar.bz2 buildscripts-115540dc06068205fc52b332c644a80c81a01d36.zip |
bin/build-rpm-package: force-enable repositories.
Diffstat (limited to 'bin/build-rpm-package')
-rwxr-xr-x | bin/build-rpm-package | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/build-rpm-package b/bin/build-rpm-package index d79fb02..ae7462d 100755 --- a/bin/build-rpm-package +++ b/bin/build-rpm-package @@ -362,6 +362,11 @@ create_mock_config () { # MOCK_BASE CUSTOM_REPO COMPONENT TARGET line="${line/1/0/}" fi + TMP_REGEX='^[[:space:]]*enabled[[:space:]]*=[[:space:]]*0[[:space:]]*$' + if [[ "${line}" =~ ${TMP_REGEX} ]]; then + line="${line/0/1/}" + fi + case "${line}" in (*'$releasever'*) line="${line/'$releasever'/${VERSION}}" ;; |