Commit 749b1433 authored by Vitaly Lipatov's avatar Vitaly Lipatov

commit packed

parent 01ef7392
...@@ -642,6 +642,7 @@ __epm_filelist_file() ...@@ -642,6 +642,7 @@ __epm_filelist_file()
;; ;;
esac esac
# TODO: add less
docmd $CMD $@ docmd $CMD $@
} }
...@@ -684,6 +685,7 @@ __epm_filelist_name() ...@@ -684,6 +685,7 @@ __epm_filelist_name()
;; ;;
esac esac
# TODO: add less
docmd $CMD $pkg_names && return docmd $CMD $pkg_names && return
is_installed $pkg_names || fatal "Query filelist for non installed packages does not realized" is_installed $pkg_names || fatal "Query filelist for non installed packages does not realized"
} }
...@@ -2092,31 +2094,31 @@ local CMD ...@@ -2092,31 +2094,31 @@ local CMD
local string="$1" local string="$1"
case $PMTYPE in case $PMTYPE in
apt-rpm|apt-dpkg) apt-rpm|apt-dpkg)
CMD="apt-cache search" CMD="apt-cache search --"
;; ;;
urpm-rpm) urpm-rpm)
CMD="urpmq -y" CMD="urpmq -y --"
;; ;;
pkgsrc) pkgsrc)
CMD="pkg_info -x" CMD="pkg_info -x --"
;; ;;
emerge) emerge)
CMD="emerge --search" CMD="emerge --search --"
;; ;;
pacman) pacman)
CMD="pacman -Ss" CMD="pacman -Ss --"
;; ;;
aura) aura)
CMD="aura -As" CMD="aura -As --"
;; ;;
yum-rpm) yum-rpm)
CMD="yum search" CMD="yum search --"
;; ;;
dnf-rpm) dnf-rpm)
CMD="dnf search" CMD="dnf search --"
;; ;;
zypper-rpm) zypper-rpm)
CMD="zypper search" CMD="zypper search --"
;; ;;
mpkg) mpkg)
CMD="mpkg search" CMD="mpkg search"
...@@ -2134,7 +2136,7 @@ case $PMTYPE in ...@@ -2134,7 +2136,7 @@ case $PMTYPE in
slackpkg) slackpkg)
# FIXME # FIXME
echo "Note: case sensitive search" echo "Note: case sensitive search"
CMD="/usr/sbin/slackpkg search" CMD="/usr/sbin/slackpkg search --"
;; ;;
homebrew) homebrew)
CMD="brew search" CMD="brew search"
...@@ -2514,9 +2516,12 @@ epm_whatdepends() ...@@ -2514,9 +2516,12 @@ epm_whatdepends()
[ -n "$pkg_names" ] || fatal "Run query without names" [ -n "$pkg_names" ] || fatal "Run query without names"
case $PMTYPE in case $PMTYPE in
apt-rpm|apt-dpkg) apt-rpm)
CMD="apt-cache whatdepends" CMD="apt-cache whatdepends"
;; ;;
apt-dpkg)
CMD="apt-cache rdepends"
;;
yum-rpm) yum-rpm)
CMD="repoquery --whatrequires" CMD="repoquery --whatrequires"
;; ;;
...@@ -2543,6 +2548,16 @@ case $PMTYPE in ...@@ -2543,6 +2548,16 @@ case $PMTYPE in
conary) conary)
CMD="conary repquery --what-provides" CMD="conary repquery --what-provides"
;; ;;
apt-rpm|apt-dpkg)
LANG=C docmd apt-get install --print-uris $pkg_filenames | grep "^Selecting" | cut -f2 -d" "
return
;;
yum-rpm)
CMD="yum whatprovides"
;;
zypper-rpm)
CMD="zypper what-provides"
;;
*) *)
fatal "Have no suitable command for $PMTYPE" fatal "Have no suitable command for $PMTYPE"
;; ;;
...@@ -2870,7 +2885,7 @@ $(get_help HELPOPT) ...@@ -2870,7 +2885,7 @@ $(get_help HELPOPT)
print_version() print_version()
{ {
echo "EPM package manager version 1.3.1" echo "EPM package manager version 1.4.1"
echo "Running on $($DISTRVENDOR) ('$PMTYPE' package manager uses '$PKGFORMAT' package format)" echo "Running on $($DISTRVENDOR) ('$PMTYPE' package manager uses '$PKGFORMAT' package format)"
echo "Copyright (c) Etersoft 2012-2013" echo "Copyright (c) Etersoft 2012-2013"
echo "This program may be freely redistributed under the terms of the GNU AGPLv3." echo "This program may be freely redistributed under the terms of the GNU AGPLv3."
......
...@@ -981,7 +981,7 @@ $(get_help HELPOPT) ...@@ -981,7 +981,7 @@ $(get_help HELPOPT)
print_version() print_version()
{ {
echo "Service manager version 1.3.1" echo "Service manager version 1.4.1"
echo "Running on $($DISTRVENDOR)" echo "Running on $($DISTRVENDOR)"
echo "Copyright (c) Etersoft 2012, 2013" echo "Copyright (c) Etersoft 2012, 2013"
echo "This program may be freely redistributed under the terms of the GNU AGPLv3." echo "This program may be freely redistributed under the terms of the GNU AGPLv3."
......
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