From 279098bd034701acfb7ff5d6f03061b90780e10f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag=20H=C3=B8idahl?= Date: Fri, 3 Jan 2014 15:15:20 +0100 Subject: [PATCH] Use "brew list " instead of grepping the output of "brew list". Some brew packages are not listed with their package name, e.g. libjpeg. --- library/packaging/homebrew | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/packaging/homebrew b/library/packaging/homebrew index 8801a4e6c4..ab1362acf1 100644 --- a/library/packaging/homebrew +++ b/library/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