CI: Fix /etc/dnf/dnf.conf for Fedora 39
This commit is contained in:
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
@@ -164,6 +164,19 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: fedora:${{matrix.fedora_version}}
|
image: fedora:${{matrix.fedora_version}}
|
||||||
steps:
|
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
|
- name: Update repositories
|
||||||
run: dnf update -y
|
run: dnf update -y
|
||||||
- name: Upgrade packages
|
- name: Upgrade packages
|
||||||
|
|||||||
Reference in New Issue
Block a user