Fix build for AlmaLinux

This commit is contained in:
eabdullin 2022-11-09 09:01:36 +03:00
parent 69798ff103
commit 1e8f5c50b2

View File

@ -818,7 +818,9 @@ ip addr list ||:
ip route list ||:
if ping -c 3 -w 20 8.8.8.8 && wget http://libguestfs.org -O /dev/null; then
# AlmaLinux: avoid permission denied for yum/dnf cache
extra=
mkdir cachedir
sed -e "s|/var/cache/yum|$(pwd)/cachedir|" -e "s|/var/cache/dnf|$(pwd)/cachedir|" /etc/dnf/dnf.conf > yum.conf
extra=--with-supermin-packager-config=$(pwd)/yum.conf
else
mkdir cachedir repo
# -n 1 because of RHBZ#980502.