Commit b18be7cc authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm downgrade: run downgrade only for installed packages

parent 3d4c32f3
......@@ -96,7 +96,14 @@ epm_downgrade()
__epm_remove_apt_downgrade_preferences
elif [ -n "$pkg_files" ] ; then
load_helper epm-install
(pkg_files=$pkg_files force="$force -F --oldpackage" epm_install)
local pkgs=''
local i
for i in $pkg_files ; do
local pkgname="$(epm print name for package $i)"
is_installed $pkgname || continue
pkgs="$pkgs $i"
done
(force="$force --oldpackage" epm_install_files $pkgs)
fi
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