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() ...@@ -224,7 +224,7 @@ epm_ni_install_names()
sudocmd yum -y $YUMOPTIONS install $(echo "$*" | exp_with_arch_suffix) sudocmd yum -y $YUMOPTIONS install $(echo "$*" | exp_with_arch_suffix)
return ;; return ;;
dnf-rpm) 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 ;; return ;;
urpm-rpm) urpm-rpm)
sudocmd urpmi --auto $URPMOPTIONS $@ sudocmd urpmi --auto $URPMOPTIONS $@
......
...@@ -104,7 +104,7 @@ epm_print_install_names_command() ...@@ -104,7 +104,7 @@ epm_print_install_names_command()
echo "yum -y $YUMOPTIONS install $*" echo "yum -y $YUMOPTIONS install $*"
return ;; return ;;
dnf-rpm) dnf-rpm)
echo "dnf -y $YUMOPTIONS --allowerasing install $*" echo "dnf install -y $YUMOPTIONS --allowerasing $*"
return ;; return ;;
urpm-rpm) urpm-rpm)
echo "urpmi --auto $URPMOPTIONS $*" echo "urpmi --auto $URPMOPTIONS $*"
......
...@@ -528,7 +528,7 @@ epm_release_upgrade() ...@@ -528,7 +528,7 @@ epm_release_upgrade()
;; ;;
"OpenMandrivaLx") "OpenMandrivaLx")
sudocmd dnf clean all sudocmd dnf clean all
sudocmd dnf --allowerasing distro-sync sudocmd dnf distro-sync --allowerasing
return return
;; ;;
"ROSA") "ROSA")
...@@ -616,7 +616,7 @@ epm_release_upgrade() ...@@ -616,7 +616,7 @@ epm_release_upgrade()
[ -n "$RELEASEVER" ] || RELEASEVER=$(($DV + 1)) [ -n "$RELEASEVER" ] || RELEASEVER=$(($DV + 1))
confirm_info 'Upgrade to $DISTRNAME/$RELEASEVER' 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 sudocmd rpm --rebuilddb
epm upgrade epm upgrade
info "You can run '# epm autoorphans' to remove orphaned packages" 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