From 566a4f26391f47af31195c6fdd06b0d839498501 Mon Sep 17 00:00:00 2001 From: Glauber Costa Date: Thu, 27 Jul 2017 16:00:45 +0000 Subject: [PATCH] default to our in-tree mock config when building on CentOS scylla.git does a similar thing, albeit in a more complicated fashion, testing for whether or not a rebuild is asked for and etc. For us, the build process is a lot simpler, so it is better to just point to the file when we detect that we are on CentOS and no explicit target is given. Signed-off-by: Glauber Costa --- dist/redhat/build_rpm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/redhat/build_rpm.sh b/dist/redhat/build_rpm.sh index ba6aea1..8d19c6e 100755 --- a/dist/redhat/build_rpm.sh +++ b/dist/redhat/build_rpm.sh @@ -43,7 +43,7 @@ if [ "$(arch)" != "x86_64" ]; then fi if [ -z "$TARGET" ]; then if [ "$ID" = "centos" -o "$ID" = "rhel" ] && [ "$VERSION_ID" = "7" ]; then - TARGET=epel-7-x86_64 + TARGET=./dist/redhat/mock/scylla-jmx-epel-7-x86_64.cfg elif [ "$ID" = "fedora" ]; then TARGET=$ID-$VERSION_ID-x86_64 else