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

improve whatprovides and whatdepends support

parent 6a6b5404
......@@ -24,9 +24,12 @@ epm_whatdepends()
# by package name
case $PMTYPE in
apt-rpm|apt-dpkg)
apt-rpm)
CMD="apt-cache whatdepends"
;;
apt-dpkg)
CMD="apt-cache rdepends"
;;
yum-rpm)
CMD="repoquery --whatrequires"
;;
......
......@@ -27,6 +27,16 @@ case $PMTYPE in
conary)
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"
;;
......
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