Commit 612898f5 authored by Vitaly Lipatov's avatar Vitaly Lipatov

use subst_option

parent 26d0ac11
...@@ -26,8 +26,7 @@ epm_remove_low() ...@@ -26,8 +26,7 @@ epm_remove_low()
sudocmd rpm -ev $nodeps $@ sudocmd rpm -ev $nodeps $@
return ;; return ;;
apt-dpkg) apt-dpkg)
[ -n "$nodeps" ] && nodeps="--force-all" sudocmd dpkg -P $(subst_option nodeps --force-all) $@
sudocmd dpkg -P $nodeps $@
return ;; return ;;
pkgsrc) pkgsrc)
sudocmd pkg_delete -r $@ sudocmd pkg_delete -r $@
...@@ -97,8 +96,7 @@ epm_remove_names() ...@@ -97,8 +96,7 @@ epm_remove_names()
sudocmd brew remove $@ sudocmd brew remove $@
return ;; return ;;
ipkg) ipkg)
[ -n "$force" ] && force=-force-depends sudocmd ipkg $(subst_option force -force-depends) remove $@
sudocmd ipkg $force remove $@
return ;; return ;;
*) *)
fatal "Have no suitable command for $PMTYPE" fatal "Have no suitable command for $PMTYPE"
......
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