Commit 01ef7392 authored by Vitaly Lipatov's avatar Vitaly Lipatov

improve whatprovides and whatdepends support

parent 6a6b5404
...@@ -24,9 +24,12 @@ epm_whatdepends() ...@@ -24,9 +24,12 @@ epm_whatdepends()
# by package name # by package name
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"
;; ;;
......
...@@ -27,6 +27,16 @@ case $PMTYPE in ...@@ -27,6 +27,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"
;; ;;
......
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