update brew list to use --formula, for brew 2.7.0
@@ -29,8 +29,8 @@ __author__ = "rcmdnk"
__copyright__ = "Copyright (c) 2013 rcmdnk"
__credits__ = ["rcmdnk"]
__license__ = "MIT"
-__version__ = "v8.2.0"
-__date__ = "29/Nov/2020"
+__version__ = "v8.3.0"
+__date__ = "22/Dec/2020"
__maintainer__ = "rcmdnk"
__email__ = "rcmdnk@gmail.com"
__status__ = "Prototype"
@@ -1924,7 +1924,7 @@ class BrewFile:
# Brew packages
if not self.opt["caskonly"]:
info = self.brewinfo.get_info()
- full_list = self.proc("brew list", print_cmd=False,
+ full_list = self.proc("brew list --formula", print_cmd=False,
print_out=False)[1]
del self.brewinfo.brew_full_list[:]
self.brewinfo.brew_full_list.extend(full_list)
@@ -2609,7 +2609,7 @@ class BrewFile:
+ "/Library/Formula/" + name + ".rb"):
if isinstance(self.opt["brew_packages"], str):
self.opt["brew_packages"] = self.proc(
- "brew list", print_cmd=False, print_out=False)[1]
+ "brew list --formula", print_cmd=False, print_out=False)[1]
if name in self.opt["brew_packages"]:
check = "brew"
opt = self.brewinfo.get_option(name)
