Commit 69014b14 authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix options order for dnf5

parent 4b0ce3ec
......@@ -224,7 +224,7 @@ epm_ni_install_names()
sudocmd yum -y $YUMOPTIONS install $(echo "$*" | exp_with_arch_suffix)
return ;;
dnf-rpm)
sudocmd dnf -y --allowerasing $YUMOPTIONS install $(echo "$*" | exp_with_arch_suffix)
sudocmd dnf install -y --allowerasing $YUMOPTIONS $(echo "$*" | exp_with_arch_suffix)
return ;;
urpm-rpm)
sudocmd urpmi --auto $URPMOPTIONS $@
......
......@@ -104,7 +104,7 @@ epm_print_install_names_command()
echo "yum -y $YUMOPTIONS install $*"
return ;;
dnf-rpm)
echo "dnf -y $YUMOPTIONS --allowerasing install $*"
echo "dnf install -y $YUMOPTIONS --allowerasing $*"
return ;;
urpm-rpm)
echo "urpmi --auto $URPMOPTIONS $*"
......
......@@ -528,7 +528,7 @@ epm_release_upgrade()
;;
"OpenMandrivaLx")
sudocmd dnf clean all
sudocmd dnf --allowerasing distro-sync
sudocmd dnf distro-sync --allowerasing
return
;;
"ROSA")
......@@ -616,7 +616,7 @@ epm_release_upgrade()
[ -n "$RELEASEVER" ] || RELEASEVER=$(($DV + 1))
confirm_info 'Upgrade to $DISTRNAME/$RELEASEVER'
sudocmd dnf -y --releasever=$RELEASEVER --allowerasing --setopt=deltarpm=false distro-sync
sudocmd dnf distro-sync -y --releasever=$RELEASEVER --allowerasing --setopt=deltarpm=false
sudocmd rpm --rebuilddb
epm upgrade
info "You can run '# epm autoorphans' to remove orphaned packages"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment