CI: fix dnf

Fedora is switching from dnf to dnf5, handle both in CI.
This commit is contained in:
Dylan Van Assche
2023-11-21 18:05:02 +01:00
committed by Dylan Van Assche
parent 29c79c9e3b
commit b38c8da204

View File

@@ -27,7 +27,8 @@ build_stable:
before_script:
# Undo delangification present in the Fedora Docker images
- rm -f /etc/rpm/macros.image-language-conf
- dnf update -y && dnf install -y $DEPENDENCIES
- dnf update -y
- if [ -x /bin/dnf ]; then dnf install -y $DEPENDENCIES; else dnf5 install -y $DEPENDENCIES; fi
- dnf reinstall -y glib2
script:
- meson -Dtests=true -Dgtk_doc=true -Dgtk-tests=true _build