Commit a5c5a876 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add --short support for what-depends

parent 09fe35b2
......@@ -31,6 +31,11 @@ epm_whatdepends()
# by package name
case $PMTYPE in
apt-rpm)
if [ -n "$short" ] ; then
showcmd apt-cache whatdepends $pkg
a= apt-cache whatdepends $pkg | grep "^ [^ ]" | sed -e "s|[0-9]*:||" | grep -E -v "(i586-|-debuginfo)"
return
fi
CMD="apt-cache whatdepends"
;;
apt-dpkg|aptitude-dpkg)
......
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