dist: recognize epel-7-x86_64 mock target and enable networking

The default epel-7-x86_64 wisely disables networking, however our
maven build accesses the maven repository during the build process.

Recognize the target name and redirect it to our networking-enabled
configuration.

Message-Id: <20180408122138.16672-1-avi@scylladb.com>
This commit is contained in:
Avi Kivity 2018-04-08 15:21:38 +03:00 committed by Pekka Enberg
parent 55abaa1bc8
commit dd8d5c87ed

View File

@ -52,6 +52,10 @@ if [ -z "$TARGET" ]; then
fi
fi
if [[ "$TARGET" = epel-7-x86_64 ]]; then
TARGET=./dist/redhat/mock/scylla-jmx-epel-7-x86_64.cfg
fi
if [ ! -f /usr/bin/mock ]; then
pkg_install mock
fi