fix(akmods): Build failure when repo's name is not hardcoded (#427)

Fixes: https://github.com/blue-build/modules/issues/418
This commit is contained in:
fiftydinar 2025-07-20 15:24:22 +02:00 committed by GitHub
parent 107625e140
commit c1ef8cbf0f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,7 +2,10 @@
set -euo pipefail
ENABLE_AKMODS_REPO() {
sed -i 's@enabled=0@enabled=1@g' /etc/yum.repos.d/_copr_ublue-os-akmods.repo
akmods_repo="$(find /etc/yum.repos.d -type f -exec grep -l '\[copr:copr.fedorainfracloud.org:ublue-os:akmods\]' {} +)"
if [[ -n "${akmods_repo}" ]]; then
sed -i 's@enabled=0@enabled=1@g' "${akmods_repo}"
fi
}
INSTALL_RPM_FUSION() {