Commit 8668e989 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm downgrade: add --auto support

parent 327ffe77
......@@ -71,20 +71,22 @@ epm_downgrade()
case $PMTYPE in
apt-rpm)
local APTOPTIONS="$(subst_option non_interactive -y)"
__epm_add_alt_apt_downgrade_preferences || return
if [ -n "$pkg_filenames" ] ; then
sudocmd apt-get install $pkg_filenames
sudocmd apt-get $APTOPTIONS install $pkg_filenames
else
sudocmd apt-get dist-upgrade
sudocmd apt-get $APTOPTIONS dist-upgrade
fi
__epm_remove_apt_downgrade_preferences
;;
apt-dpkg)
local APTOPTIONS="$(subst_option non_interactive -y)"
__epm_add_deb_apt_downgrade_preferences || return
if [ -n "$pkg_filenames" ] ; then
sudocmd apt-get install $pkg_filenames
sudocmd apt-get $APTOPTIONS install $pkg_filenames
else
sudocmd apt-get dist-upgrade
sudocmd apt-get $APTOPTIONS dist-upgrade
fi
__epm_remove_apt_downgrade_preferences
;;
......
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