Commit 613be91b authored by Vitaly Lipatov's avatar Vitaly Lipatov

small cleanup

parent 10f6f3f1
......@@ -109,9 +109,18 @@ for opt in "$@" ; do
-e|remove)
epm_cmd=remove
;;
-qi|info)
epm_cmd=info
;;
clean)
epm_cmd=clean
;;
-qa|list|packages)
epm_cmd=packages
;;
update)
epm_cmd=update
;;
dist-upgrade|upgrade)
epm_cmd=upgrade
;;
......
......@@ -72,26 +72,26 @@ set_pm_type()
{
local CMD
case $DISTRNAME in
"ALTLinux"|"PCLinux")
ALTLinux|PCLinux)
CMD="apt-rpm"
;;
"FreeBSD")
FreeBSD)
CMD="pkg_add"
;;
"Ubuntu"|"Debian")
Ubuntu|Debian)
CMD="apt-dpkg"
;;
"LinuxXP"|"Fedora"|"ASPLinux"|"CentOS"|"RHEL"|"Scientific")
LinuxXP|Fedora|ASPLinux|CentOS|RHEL|Scientific)
CMD="yum-rpm"
;;
"Mandriva")
Mandriva|ROSA)
CMD="urpm-rpm"
;;
"SUSE")
SUSE)
CMD="zypper-rpm"
;;
*)
fatal "Do not known command for DISTRNAME $DISTRNAME"
fatal "Do not known DISTRNAME $DISTRNAME"
;;
esac
PMTYPE=$CMD
......
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