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() ...@@ -22,11 +22,11 @@ epm_info()
{ {
case $PMTYPE in case $PMTYPE in
apt-rpm|apt-dpkg) 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) zypper-rpm)
docmd zypper info $pkg_names || exit docmd zypper info $pkg_names || exit
;; ;;
......
...@@ -135,24 +135,27 @@ case $DISTRNAME in ...@@ -135,24 +135,27 @@ case $DISTRNAME in
ALTLinux|PCLinux) ALTLinux|PCLinux)
CMD="apt-rpm" CMD="apt-rpm"
;; ;;
FreeBSD)
CMD="pkg_add"
;;
Ubuntu|Debian|Mint) Ubuntu|Debian|Mint)
CMD="apt-dpkg" CMD="apt-dpkg"
;; ;;
LinuxXP|Fedora|ASPLinux|CentOS|RHEL|Scientific)
CMD="yum-rpm"
;;
Mandriva|ROSA) Mandriva|ROSA)
CMD="urpm-rpm" CMD="urpm-rpm"
;; ;;
SUSE|SLED|SLES) FreeBSD)
CMD="zypper-rpm" CMD="pkg_add"
;; ;;
Gentoo) Gentoo)
CMD="emerge" 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" 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