diff --git a/packaging/homebrew b/packaging/homebrew index 8801a4e6c4d..ab1362acf1d 100644 --- a/packaging/homebrew +++ b/packaging/homebrew @@ -71,7 +71,7 @@ def query_package(module, brew_path, name, state="present"): """ Returns whether a package is installed or not. """ if state == "present": - rc, out, err = module.run_command("%s list -m1 | grep -q '^%s$'" % (brew_path, name)) + rc, out, err = module.run_command("%s list %s" % (brew_path, name)) if rc == 0: return True