kernel-ark: Use dnf5 when available

Prefer to use dnf5, when it's available on the system.
Fallback to dnf-3 otherwise.

This fixes a warning on Testing Farm that might be interpreted as failure.
This commit is contained in:
Tulio Magno Quites Machado Filho 2026-03-06 11:30:59 -03:00 committed by tuliom
commit 6df13a6c10

View file

@ -154,7 +154,11 @@ rlJournalStart
rlRun "set -o pipefail"
if rlIsFedora; then
rlLog "Disable updates-testing"
rlRun "dnf-3 config-manager --set-disabled updates-testing"
if command -v dnf5; then
rlRun "dnf5 config-manager setopt updates-testing.enabled=0"
else
rlRun "dnf-3 config-manager --set-disabled updates-testing"
fi
fi
rlPhaseEnd