mockbuild: drop fastestmirror and weakdependencies

Try to be install as close to what people do in production, which means
sticking to the defaults.
This commit is contained in:
Lars Karlitski 2020-11-14 13:33:04 +01:00 committed by Tom Gundersen
parent c686dbe03a
commit 4b084e3b64

View file

@ -29,12 +29,6 @@ fi
greenprint "📦 Installing mock requirements"
sudo dnf -y install createrepo_c make mock python3-pip rpm-build s3cmd
# Enable fastestmirror for mock on Fedora.
if [[ $ID == fedora ]]; then
sudo sed -i '/^install_weak_deps=.*/a fastestmirror=1' \
/etc/mock/templates/fedora-branched.tpl
fi
# Mock configuration file to use for building RPMs.
MOCK_CONFIG="${ID}-${VERSION_ID%.*}-$(uname -m)"