Skip to content

Commit

Permalink
fix: update brew info options to use --installed instead of --eval-all
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmdnk committed Sep 5, 2024
1 parent 2c762a3 commit 54e15f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/brew-file
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ class BrewHelper:
return self.opt["formula_info"]

info = self.brew_info_v1(
info_opt="--eval-all", print_cmd=False, print_out=False
info_opt="--installed", print_cmd=False, print_out=False
)
if (
not [x for x in info if x["tap"] == self.opt["core_repo"]]
Expand Down Expand Up @@ -441,7 +441,7 @@ class BrewHelper:
return self.opt["cask_info"]

info = self.brew_info_v2(
info_opt="--eval-all", print_cmd=False, print_out=False
info_opt="--installed", print_cmd=False, print_out=False
)["casks"]
if (
not [x for x in info if x["tap"] == self.opt["cask_repo"]]
Expand Down
4 changes: 2 additions & 2 deletions src/brew_file/brew_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def get_formula_info(self) -> list[dict[str, Any]]:
return self.opt["formula_info"]

info = self.brew_info_v1(
info_opt="--eval-all", print_cmd=False, print_out=False
info_opt="--installed", print_cmd=False, print_out=False
)
if (
not [x for x in info if x["tap"] == self.opt["core_repo"]]
Expand Down Expand Up @@ -285,7 +285,7 @@ def get_cask_info(self) -> Any:
return self.opt["cask_info"]

info = self.brew_info_v2(
info_opt="--eval-all", print_cmd=False, print_out=False
info_opt="--installed", print_cmd=False, print_out=False
)["casks"]
if (
not [x for x in info if x["tap"] == self.opt["cask_repo"]]
Expand Down

0 comments on commit 54e15f2

Please sign in to comment.