Commit 6c13a341 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm provides: improve for dnf

parent 1163250f
...@@ -63,11 +63,32 @@ case $PMTYPE in ...@@ -63,11 +63,32 @@ case $PMTYPE in
return return
fi fi
;; ;;
urpm-rpm|zypper-rpm|yum-rpm|dnf-rpm) urpm-rpm)
if is_installed $pkg_names ; then if is_installed $pkg_names ; then
CMD="rpm -q --provides" CMD="rpm -q --provides"
else else
fatal "FIXME: use hi level commands" CMD="urpmq --provides"
fi
;;
zypper-rpm)
if is_installed $pkg_names ; then
CMD="rpm -q --provides"
else
fatal "FIXME: use hi level commands or download firstly"
fi
;;
yum-rpm)
if is_installed $pkg_names ; then
CMD="rpm -q --provides"
else
fatal "FIXME: use hi level commands or download firstly"
fi
;;
dnf-rpm)
if is_installed $pkg_names ; then
CMD="rpm -q --provides"
else
CMD="dnf repoquery --provides"
fi fi
;; ;;
emerge) emerge)
......
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