diff --git a/.gitlab-ci/fedora-install.sh b/.gitlab-ci/fedora-install.sh index 3bd4698366..65e0219921 100755 --- a/.gitlab-ci/fedora-install.sh +++ b/.gitlab-ci/fedora-install.sh @@ -39,12 +39,12 @@ fi fi -NM_NO_EXTRA=1 NM_INSTALL="yum install -y" ./contrib/fedora/REQUIRED_PACKAGES -yum install -y glibc-langpack-pl ccache clang +NM_NO_EXTRA=1 ./contrib/fedora/REQUIRED_PACKAGES +dnf install -y glibc-langpack-pl ccache clang # containers have "tsflags=nodocs" in /etc/dnf/dnf.conf. We need /usr/shared/gtk-doc/html # to generate proper documentation. -yum reinstall -y --setopt='tsflags=' glib2-doc +dnf reinstall -y --setopt='tsflags=' glib2-doc if [ $IS_FEDORA = 1 ]; then FEDORA_VERSION=$(cat /etc/os-release | grep '^VERSION_ID=' | sed s\/"VERSION_ID="\/\/) diff --git a/contrib/fedora/REQUIRED_PACKAGES b/contrib/fedora/REQUIRED_PACKAGES index d47e60980a..c2832875c7 100755 --- a/contrib/fedora/REQUIRED_PACKAGES +++ b/contrib/fedora/REQUIRED_PACKAGES @@ -4,16 +4,13 @@ # NetworkManager on Fedora and RHEL. # # Not all of these packages are available, depending -# on your distribution/release. But yum will happily -# skip them. +# on your distribution/release. But the script will skip them. # # Not all of these packages are strictly speaking necessary. # This is a generous list of related packages. set -xe -DNF="$(command -v dnf &>/dev/null && echo dnf || echo yum)" - SUDO= [ "$EUID" -eq 0 ] || SUDO=sudo @@ -21,7 +18,7 @@ install() { if [ "$NM_INSTALL" != "" ]; then $NM_INSTALL "$@" else - $SUDO "$DNF" install -y "$@" + $SUDO dnf install -y "$@" fi }