Commit 6af0089e authored by Danil Mikhailov's avatar Danil Mikhailov

epm info fix: on apt, add: on yum

parent d09a1cfb
danil@multi.office.etersoft.ru.18783
\ No newline at end of file
......@@ -22,11 +22,11 @@ epm_info()
{
case $PMTYPE in
apt-rpm|apt-dpkg)
docmd apt-cache show || exit
docmd apt-cache show $pkg_names || exit
;;
yum-rpm)
docmd $SUDO yum info $pkg_names || exit
;;
#yum-rpm)
# docmd $SUDO yum repolist || exit
# ;;
zypper-rpm)
docmd zypper info $pkg_names || exit
;;
......
......@@ -135,24 +135,27 @@ case $DISTRNAME in
ALTLinux|PCLinux)
CMD="apt-rpm"
;;
FreeBSD)
CMD="pkg_add"
;;
Ubuntu|Debian|Mint)
CMD="apt-dpkg"
;;
LinuxXP|Fedora|ASPLinux|CentOS|RHEL|Scientific)
CMD="yum-rpm"
;;
Mandriva|ROSA)
CMD="urpm-rpm"
;;
SUSE|SLED|SLES)
CMD="zypper-rpm"
FreeBSD)
CMD="pkg_add"
;;
Gentoo)
CMD="emerge"
;;
ArchLinux)
CMD="pacman"
;;
Fedora|LinuxXP|ASPLinux|CentOS|RHEL|Scientific)
CMD="yum-rpm"
;;
SUSE|SLED|SLES)
CMD="zypper-rpm"
;;
*)
fatal "Do not known DISTRNAME $DISTRNAME"
;;
......
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