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:
parent
b5095271a1
commit
6df13a6c10
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue