Commit 1da9deff authored by Vitaly Lipatov's avatar Vitaly Lipatov

add --no-remove support during upgrade

parent 33adcc60
......@@ -72,6 +72,7 @@ Descr="epm - EPM package manager"
verbose=
quiet=
nodeps=
noremove=
force=
short=
sort=
......@@ -314,6 +315,9 @@ check_option()
--force) # HELPOPT: force install/remove package (f.i., override)
force="--force"
;;
--noremove|--no-remove) # HELPOPT: exit if any packages are to be removed during upgrade
noremove="--no-remove"
;;
--short) # HELPOPT: short output (just 'package' instead 'package-version-release')
short="--short"
;;
......
......@@ -34,7 +34,7 @@ epm_upgrade()
apt-rpm|apt-dpkg)
# non_interactive
# Функцию добавления параметра при условии
CMD="apt-get dist-upgrade"
CMD="apt-get dist-upgrade $noremove"
;;
aptitude-dpkg)
CMD="aptitude dist-upgrade"
......
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