@@ -536,7 +536,6 @@ SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
536
536
)
537
537
538
538
def _make_installed_package (self , formula_name : str , formula_version : str ) -> InstalledPackage :
539
- print ("@@@" , formula_name , file = sys .stderr )
540
539
# TODO(strager): Cache output of 'brew info'.
541
540
brew_info_json = subprocess .check_output (
542
541
[pathlib .Path (self .__brew_prefix ) / "bin" / "brew" , "info" , "--json" , "--installed" ],
@@ -553,20 +552,10 @@ SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
553
552
raise Exception (f"Could not find formula { formula_name } in output of 'brew info --installed --json'" )
554
553
555
554
installed_path = pathlib .Path (self .__brew_prefix ) / "opt" / formula_name
556
- #version = pathlib.Path(os.readlink(installed_path)).name
557
- #install_receipt = json.loads(
558
- # (installed_path / "INSTALL_RECEIPT.json").read_text()
559
- #)
560
-
561
- #tap = install_receipt["source"]["tap"]
562
555
tap = formula_brew_info ["tap" ]
563
556
if tap != "homebrew/core" :
564
557
raise Exception (f"Unsupported tap for formula { formula_name } : { tap } " )
565
- #tap_git_commit = install_receipt["source"]["tap_git_head"]
566
558
tap_git_commit = formula_brew_info ["tap_git_head" ]
567
-
568
- #formula_rb_path = pathlib.Path(install_receipt["source"]["path"])
569
- #formula_rb_repo_path = self._relative_path_within_git_checkout(formula_rb_path)
570
559
formula_rb_repo_path = formula_brew_info ["ruby_source_path" ]
571
560
572
561
return self .InstalledPackage (
0 commit comments