Commit a76ada76 authored by Vitaly Lipatov's avatar Vitaly Lipatov

remove get_install_package_command (use epm install instead)

parent 01ef5e6d
......@@ -23,33 +23,3 @@ drop_pkg_extensions()
done | filter_strip_spaces
}
# TODO: add get_update_repo_command
# TODO: migrate to file using (as repos)
# args: DISTRNAME [interactive]
get_install_package_command()
{
local DISTRNAME=$1
local INAC=$2
local CMD
local RET=0
case $DISTRNAME in
"ALTLinux"|"Ubuntu"|"Debian"|"PCLinux")
[ -n "$INAC" ] && CMD="apt-get install" || CMD="apt-get -y --force-yes install"
;;
"LinuxXP"|"Fedora"|"ASPLinux"|"CentOS"|"RHEL"|"Scientific")
[ -n "$INAC" ] && CMD="yum install" || CMD="yum -y install"
;;
Mandriva|ROSA)
[ -n "$INAC" ] && CMD="urpmi --no-verify-rpm" || CMD="urpmi --auto --no-verify-rpm"
;;
SUSE|SLED|SLES)
[ -n "$INAC" ] && CMD="zypper --non-interactive install" || CMD="yes | zypper --non-interactive install"
;;
*)
RET=1
CMD="echo \"Do not known install command for DISTRNAME $DISTRNAME\""
;;
esac
echo $CMD
return $RET
}
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