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