Commit 639c9b23 authored by Vitaly Lipatov's avatar Vitaly Lipatov

small fixes

parent 8ac0357b
......@@ -20,9 +20,10 @@
epm_autoremove()
{
case $PMTYPE in
#apt-rpm)
# sudocmd apt-get autoclean
# ;;
apt-rpm)
# ALT Linux only
sudocmd remove-old-kernels
;;
apt-dpkg)
sudocmd apt-get autoremove
;;
......
......@@ -94,7 +94,6 @@ epm_install_names()
npackd)
separate_installed $@
# FIXME: fix return status
# TODO: use upgrade if package is already installed
[ -n "$pkg_noninstalled" ] && sudocmd npackdcl add --package=$@ $pkg_noninstalled
[ -n "$pkg_installed" ] && sudocmd npackdcl update --package=$@ $pkg_installed
return ;;
......
......@@ -36,7 +36,7 @@ epm_reinstall_names()
esac
# fallback to generic install
epm_install_names
epm_install_names $@
}
epm_reinstall_files()
......
......@@ -24,7 +24,8 @@ epm_upgrade()
case $PMTYPE in
apt-rpm|apt-dpkg)
# FIXME: apt-get update before
# non_interactive
# Функцию добавления параметра при условии
CMD="apt-get dist-upgrade"
;;
yum-rpm)
......
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