Commit 48913b2a authored by Vitaly Lipatov's avatar Vitaly Lipatov

install: drop DISTRNAME using

parent 229efded
......@@ -74,7 +74,7 @@ epm_install_names()
docmd $SUDO mpkg install $@
return ;;
pkgtool)
docmd $SUDO installpkg $@
docmd $SUDO slackpkg install $@
return ;;
*)
fatal "Do not known install command for $PMTYPE"
......@@ -82,6 +82,7 @@ epm_install_names()
esac
}
# Non interactive install
epm_ni_install_names()
{
[ -z "$1" ] && return
......@@ -117,20 +118,11 @@ epm_install_files()
{
[ -z "$1" ] && return
case $DISTRNAME in
ALTLinux)
case $PMTYPE in
apt-rpm)
docmd $SUDO rpm -Uvh --force $@ && return
docmd $SUDO apt-get install $@
return ;;
PCLinux)
docmd $SUDO rpm -Uvh --force $@
return ;;
FreeBSD)
docmd $SUDO pkg_add $@
return ;;
esac
case $PMTYPE in
apt-dpkg)
docmd $SUDO dpkg -i $@
docmd $SUDO apt-get -f install
......@@ -139,6 +131,9 @@ epm_install_files()
docmd $SUDO rpm -Uvh --force $@ && return
docmd $SUDO yum --nogpgcheck local install $@
return ;;
pkg_add)
docmd $SUDO pkg_add $@
return ;;
pacman)
docmd $SUDO pacman -U $@
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