CI: Fix /etc/dnf/dnf.conf for Fedora 39

This commit is contained in:
Jonas Kvinge 2023-06-06 00:05:14 +02:00
parent 4fd617a32f
commit 3c160c2f13
1 changed files with 13 additions and 0 deletions

View File

@ -164,6 +164,19 @@ jobs:
container:
image: fedora:${{matrix.fedora_version}}
steps:
- name: Fix /etc/dnf/dnf.conf
if: matrix.fedora_version == '39'
run: |
dnf_conf_main=$(grep '^\[main\]$' /etc/dnf/dnf.conf 2>/dev/null || true)
if [ "${dnf_conf_main}" = "" ]; then
echo "[main]" > /etc/dnf/dnf.conf
echo "gpgcheck=True" >> /etc/dnf/dnf.conf
echo "installonly_limit=3" >> /etc/dnf/dnf.conf
echo "clean_requirements_on_remove=True" >> /etc/dnf/dnf.conf
echo "best=False" >> /etc/dnf/dnf.conf
echo "skip_if_unavailable=True" >> /etc/dnf/dnf.conf
echo "tsflags=nodocs" >> /etc/dnf/dnf.conf
fi
- name: Update repositories
run: dnf update -y
- name: Upgrade packages