Commit a17dab31 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm downgrade: use alt case

parent 5c70c8c6
...@@ -79,8 +79,8 @@ epm_downgrade() ...@@ -79,8 +79,8 @@ epm_downgrade()
info "Running command for downgrade packages" info "Running command for downgrade packages"
case $PMTYPE in case $BASEDISTRNAME in
apt-rpm) alt)
# pass pkg_filenames too # pass pkg_filenames too
if [ -n "$pkg_names" ] ; then if [ -n "$pkg_names" ] ; then
__epm_add_alt_apt_downgrade_preferences || return __epm_add_alt_apt_downgrade_preferences || return
...@@ -96,7 +96,13 @@ epm_downgrade() ...@@ -96,7 +96,13 @@ epm_downgrade()
epm_upgrade "$@" epm_upgrade "$@"
__epm_remove_apt_downgrade_preferences __epm_remove_apt_downgrade_preferences
fi fi
return
;; ;;
esac
case $PMTYPE in
#apt-rpm)
# ;;
apt-dpkg) apt-dpkg)
local APTOPTIONS="$(subst_option non_interactive -y) $force_yes" local APTOPTIONS="$(subst_option non_interactive -y) $force_yes"
__epm_add_deb_apt_downgrade_preferences || return __epm_add_deb_apt_downgrade_preferences || return
......
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