Commit e0cd4a45 by Michael DeHaan

Merge pull request #5489 from daghoidahl/devel

Use "brew list <name>" instead of grepping the output of "brew list". Fix for #5488
parents a3d90e8a 279098bd
......@@ -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
......
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