mockbuild: remove subscriptions

Everything is pre-subscribed.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
Ondřej Budai 2021-10-20 10:55:46 +02:00 committed by Ondřej Budai
parent fa1a4be4d3
commit 99a8d67812

View file

@ -9,17 +9,6 @@ function greenprint {
# Get OS and architecture details.
source tools/set-env-variables.sh
# Register RHEL if we are provided with a registration script.
if [[ $ID == "rhel" && $VERSION_ID == "8.3" && -n "${RHN_REGISTRATION_SCRIPT:-}" ]] && ! sudo subscription-manager status; then
greenprint "🪙 Registering RHEL instance"
sudo chmod +x "$RHN_REGISTRATION_SCRIPT"
for _ in {0..4}
do
sudo "$RHN_REGISTRATION_SCRIPT" && break
sleep 5
done
fi
# Mock configuration file to use for building RPMs.
MOCK_CONFIG="${ID}-${VERSION_ID%.*}-$(uname -m)"