From 9a016593cb3e5ecfca1e35e51bc306f14b4bcd35 Mon Sep 17 00:00:00 2001 From: Jesus Checa Hidalgo Date: Tue, 10 Mar 2026 19:03:10 +0100 Subject: [PATCH] rpm-rebuild: remove use of yum, move to dnf --- tests/Sanity/rpm-rebuild/runtest.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Sanity/rpm-rebuild/runtest.sh b/tests/Sanity/rpm-rebuild/runtest.sh index cffaf8c..5499b64 100755 --- a/tests/Sanity/rpm-rebuild/runtest.sh +++ b/tests/Sanity/rpm-rebuild/runtest.sh @@ -26,7 +26,7 @@ rlJournalStart rlPhaseStart FAIL "${PKG_TO_BUILD}"FetchSrcAndInstallBuildDeps if ! rlCheckRpm "$PKG_TO_BUILD"; then - rlRun "yum install -y $PKG_TO_BUILD ${YUM_SWITCHES}" + rlRun "dnf install -y $PKG_TO_BUILD" rlAssertRpm "$PKG_TO_BUILD" fi rlFetchSrcForInstalled "$PKG_TO_BUILD" @@ -46,7 +46,7 @@ rlJournalStart # builddep needs to be run from the srpm, not the spec file, to be able # to generate them: # https://fedoraproject.org/wiki/Changes/DynamicBuildRequires#rpmbuild - rlRun "yum-builddep -y ${SRPM} ${YUM_SWITCHES}" + rlRun "dnf builddep -y ${SRPM}" rlPhaseEnd rlPhaseStartTest