Commit 7f6d2a94 by Daniel Jaouen

Miscellaneous fixes to homebrew module.

parent 6412bdf0
...@@ -539,7 +539,7 @@ class Homebrew(object): ...@@ -539,7 +539,7 @@ class Homebrew(object):
cmd = [opt for opt in opts if opt] cmd = [opt for opt in opts if opt]
rc, out, err = self.module.run_command(cmd) rc, out, err = self.module.run_command(cmd)
if not self._current_package_is_outdated(): if self._current_package_is_installed() and not self._current_package_is_outdated():
self.changed_count += 1 self.changed_count += 1
self.changed = True self.changed = True
self.message = 'Package upgraded: {0}'.format(self.current_package) self.message = 'Package upgraded: {0}'.format(self.current_package)
......
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