Commit 40494a90 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-downgrade: use epm-upgrade for apt-rpm PMTYPE, instead of direct apt-get dist-upgrade

parent a0386061
...@@ -73,11 +73,8 @@ epm_downgrade() ...@@ -73,11 +73,8 @@ epm_downgrade()
apt-rpm) apt-rpm)
local APTOPTIONS="$(subst_option non_interactive -y)" local APTOPTIONS="$(subst_option non_interactive -y)"
__epm_add_alt_apt_downgrade_preferences || return __epm_add_alt_apt_downgrade_preferences || return
if [ -n "$pkg_filenames" ] ; then load_helper epm-upgrade
sudocmd apt-get $APTOPTIONS install $pkg_filenames epm_upgrade "$@"
else
sudocmd apt-get $APTOPTIONS dist-upgrade
fi
__epm_remove_apt_downgrade_preferences __epm_remove_apt_downgrade_preferences
;; ;;
apt-dpkg) apt-dpkg)
......
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