Commit 9e5a3b29 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-downgrade: install rpm files with --oldpackage

parent 5f790758
...@@ -77,16 +77,20 @@ epm_downgrade() ...@@ -77,16 +77,20 @@ epm_downgrade()
case $PMTYPE in case $PMTYPE in
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
# 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
load_helper epm-install load_helper epm-install
(pkg_names=$pkg_names epm_install) (pkg_names=$pkg_names epm_install)
__epm_remove_apt_downgrade_preferences
elif [ -n "$pkg_files" ] ; then
load_helper epm-install
(pkg_files=$pkg_files force="$force --oldpackage" epm_install)
else else
__epm_add_alt_apt_downgrade_preferences || return
load_helper epm-upgrade load_helper epm-upgrade
epm_upgrade "$@" epm_upgrade "$@"
fi fi
__epm_remove_apt_downgrade_preferences
;; ;;
apt-dpkg) apt-dpkg)
local APTOPTIONS="$(subst_option non_interactive -y)" local APTOPTIONS="$(subst_option non_interactive -y)"
......
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