Commit 49a21e78 authored by Vitaly Lipatov's avatar Vitaly Lipatov

search: rewrite with PMTYPE using

parent 20b4ba42
...@@ -24,23 +24,21 @@ epm_search() ...@@ -24,23 +24,21 @@ epm_search()
{ {
[ -n "$pkg_filenames" ] || fatal "Run search without names" [ -n "$pkg_filenames" ] || fatal "Run search without names"
#CMD=$(get_install_package_command $DISTRNAME interactive) case $PMTYPE in
case $DISTRNAME in apt-rpm|apt-dpkg)
"ALTLinux"|"Ubuntu"|"Debian"|"PCLinux")
CMD="apt-cache search" CMD="apt-cache search"
;; ;;
"LinuxXP"|"Fedora"|"ASPLinux"|"CentOS"|"RHEL"|"Scientific") yum-rpm)
CMD="yum search" CMD="yum search"
;; ;;
"Mandriva") urpm-rpm)
CMD="urpmf" CMD="urpmf"
;; ;;
"SUSE") zupper-rpm)
CMD="zypper search" CMD="zypper search"
;; ;;
*) *)
RET=1 fatal "Do not known search command for $PMTYPE"
CMD="echo \"Do not known install command for DISTRNAME $DISTRNAME\""
;; ;;
esac esac
......
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