Commit 22668dd9 authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix checking package presence via howbrew

parent 23c16be4
...@@ -232,8 +232,12 @@ __epm_query_name() ...@@ -232,8 +232,12 @@ __epm_query_name()
CMD="conary query" CMD="conary query"
;; ;;
homebrew) homebrew)
docmd brew info "$1" >/dev/null 2>/dev/null && echo "$1" && return showcmd "brew info $1"
return 1 local HBRESULT
HBRESULT="$(brew info "$1" 2>/dev/null)" || return
echo "$HBRESULT" | grep -q -v "^Not installed" || return
echo "$1"
return 0
;; ;;
pacman) pacman)
docmd pacman -Q $@ docmd pacman -Q $@
......
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