There is no EPEL for EL10 yet so use a custom repository
This commit is contained in:
parent
60d4f56b54
commit
207648549c
1 changed files with 7 additions and 1 deletions
|
|
@ -107,13 +107,19 @@ if curl --silent --fail --head --output /dev/null "${REPO_URL}/repodata/repomd.x
|
|||
fi
|
||||
|
||||
# Mock and s3cmd is only available in EPEL for RHEL.
|
||||
if [[ $ID == rhel || $ID == centos ]] && ! rpm -q epel-release; then
|
||||
# TODO: Adjust this condition, once EPEL-10 is enabled
|
||||
if [[ ($ID == rhel || $ID == centos) && ${VERSION_ID%.*} -lt 10 ]] && ! rpm -q epel-release; then
|
||||
greenprint "📦 Setting up EPEL repository"
|
||||
curl -Ls --retry 5 --output /tmp/epel.rpm \
|
||||
https://dl.fedoraproject.org/pub/epel/epel-release-latest-${VERSION_ID%.*}.noarch.rpm
|
||||
dnf_install_with_retry /tmp/epel.rpm
|
||||
fi
|
||||
|
||||
# TODO: Remove this workaround, once EPEL-10 is enabled
|
||||
if [[ ($ID == rhel || $ID == centos) && ${VERSION_ID%.*} == 10 ]]; then
|
||||
sudo dnf copr enable -y @osbuild/centpkg "centos-stream-10-$(uname -m)"
|
||||
fi
|
||||
|
||||
# Install requirements for building RPMs in mock.
|
||||
greenprint "📦 Installing mock requirements"
|
||||
dnf_install_with_retry createrepo_c make mock python3-pip rpm-build s3cmd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue