libguestfs/config.yaml
2025-03-11 10:43:33 +03:00

33 lines
1.2 KiB
YAML

actions:
- replace:
- target: "spec"
find: |
if ping -c 3 -w 20 8.8.8.8 && curl http://libguestfs.org -o /dev/null; then
extra=
else
mkdir cachedir repo
# -n 1 because of RHBZ#980502.
find /var/cache/{dnf,yum} -type f -name '*.rpm' -print0 | \
xargs -0 -n 1 cp -t repo
createrepo_c repo
sed -e "s|@PWD@|$(pwd)|" %{SOURCE6} > yum.conf
extra=--with-supermin-packager-config=$(pwd)/yum.conf
fi
replace: |
# 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
count: 1
- modify_release:
- suffix: ".alma.1"
enabled: true
- changelog_entry:
- name: "Eduard Abdullin"
email: "eabdullin@almalinux.org"
line:
- "Fix build for AlmaLinux"
- "Avoid permission denied for yum/dnf cache"