Fix build

This commit is contained in:
eabdullin 2022-10-13 13:24:45 +03:00
parent 1f5472e5b3
commit b0eccf692d
1 changed files with 4 additions and 1 deletions

View File

@ -814,7 +814,10 @@ sed 's/@VERSION@/%{version}/g' < %{SOURCE4} > README
ip addr list ||:
ip route list ||:
if ping -c 3 -w 20 8.8.8.8 && wget http://libguestfs.org -O /dev/null; then
extra=
# AlmaLinux: avoid permission denied for yum/dnf cache
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.