Commit 50222c35 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-downgrade: fix downgrade a package

parent a7199053
......@@ -331,7 +331,6 @@ check_command()
;;
downgrade) # HELPCMD: downgrade [all] packages to the repo state
epm_cmd=downgrade
direct_args=1
;;
download) # HELPCMD: download package(s) file to the current dir
epm_cmd=download
......
......@@ -78,9 +78,14 @@ epm_downgrade()
apt-rpm)
local APTOPTIONS="$(subst_option non_interactive -y)"
__epm_add_alt_apt_downgrade_preferences || return
load_helper epm-upgrade
# pass pkg_filenames too
epm_upgrade "$@"
if [ -n "$pkg_names" ] ; then
load_helper epm-install
(pkg_names=$pkg_names epm_install)
else
load_helper epm-upgrade
epm_upgrade "$@"
fi
__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