From 91e246a77613ed3077d32911f07f45108d534b2b Mon Sep 17 00:00:00 2001 From: Jacopo Date: Sat, 28 Jun 2014 14:27:33 +1000 Subject: [PATCH] Fixed bug with environment path for homebrew_cask --- packaging/homebrew_cask | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packaging/homebrew_cask b/packaging/homebrew_cask index fa85931afc9..dede8d4bb36 100644 --- a/packaging/homebrew_cask +++ b/packaging/homebrew_cask @@ -325,7 +325,7 @@ class HomebrewCask(object): raise HomebrewCaskException(self.message) cmd = [self.brew_path, 'cask', 'list'] - rc, out, err = self.module.run_command(cmd) + rc, out, err = self.module.run_command(cmd, path_prefix=self.path[0]) if 'nothing to list' in err: return False @@ -353,7 +353,7 @@ class HomebrewCask(object): rc, out, err = self.module.run_command([ self.brew_path, 'update', - ]) + ], path_prefix=self.path[0]) if rc == 0: if out and isinstance(out, basestring): already_updated = any( @@ -399,7 +399,7 @@ class HomebrewCask(object): for opt in (self.brew_path, 'cask', 'install', self.current_cask) if opt] - rc, out, err = self.module.run_command(cmd) + rc, out, err = self.module.run_command(cmd, path_prefix=self.path[0]) if self._current_cask_is_installed(): self.changed_count += 1 @@ -444,7 +444,7 @@ class HomebrewCask(object): for opt in (self.brew_path, 'cask', 'uninstall', self.current_cask) if opt] - rc, out, err = self.module.run_command(cmd) + rc, out, err = self.module.run_command(cmd, path_prefix=self.path[0]) if not self._current_cask_is_installed(): self.changed_count += 1