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