Update homebrew module.

reviewable/pr18780/r1
Daniel Jaouen 11 years ago
parent b566b27edd
commit e77c65af80

@ -362,16 +362,18 @@ class Homebrew(object):
cmd = [
"{brew_path}".format(brew_path=self.brew_path),
"list",
"-m1",
"info",
self.current_package,
]
rc, out, err = self.module.run_command(cmd)
packages = [package for package in out.split('\n') if package]
if rc == 0 and self.current_package in packages:
return True
else:
return False
for line in out.split('\n'):
if (
re.search(r'Built from source', line)
or re.search(r'Poured from bottle', line)
):
return True
return False
def _outdated_packages(self):
rc, out, err = self.module.run_command([

Loading…
Cancel
Save