Commit 2fecde85 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-provides: fix for installed deb package

parent 1be5351b
...@@ -83,14 +83,14 @@ case $PMTYPE in ...@@ -83,14 +83,14 @@ case $PMTYPE in
apt-dpkg) apt-dpkg)
# FIXME: need fix for a few names case # FIXME: need fix for a few names case
if is_installed $pkg_names ; then if is_installed $pkg_names ; then
info "Please inform the author how to get provides from dpkg" showcmd dpkg -s $pkg_names
fi a='' dpkg -s $pkg_names | grep "^Provides:" | sed "s|^Provides:||g"
# CMD="rpm -q --provides" return
#else else
EXTRA_SHOWDOCMD=' | grep "Provides:"' EXTRA_SHOWDOCMD=' | grep "Provides:"'
docmd apt-cache show $pkg_names | grep "Provides:" | sed -e 's|, |\n|g' | grep -v "^Provides:" docmd apt-cache show $pkg_names | grep "Provides:" | sed -e 's|, |\n|g' | grep -v "^Provides:"
return return
#fi fi
;; ;;
*) *)
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