From 863381dd41aa7f891a0a0ac67452a8baa56142da Mon Sep 17 00:00:00 2001 From: Michal Srb Date: Fri, 20 Sep 2024 11:47:46 +0200 Subject: [PATCH] Enable CRB and EPEL if we are running with the EPEL profile Fixes: OSCI-6783 Signed-off-by: Michal Srb --- prepare.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/prepare.sh b/prepare.sh index bb24ce7..30f49b7 100755 --- a/prepare.sh +++ b/prepare.sh @@ -33,6 +33,14 @@ set +e # prepare the system for testing mtps-prepare-system -p "${PROFILE_NAME}" --fixrepo --enablebuildroot + +if [[ "$PROFILE_NAME" == epel* ]]; then + # enable CRB and EPEL + echo "Enabling CRB and EPEL..." + yum config-manager --enable crb + yum -y install epel-release +fi + mtps-get-task --createrepo --installrepofile --recursive --task="$TASK_ID" --download=/var/lib/brew-repo rc="$?" if [[ "$rc" -ne 0 ]]; then