From f1d370074477118b880fffbb020ca01d9c0d8d45 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Mon, 19 Jun 2023 03:43:26 +0100 Subject: [PATCH] formula_installer: fix postinstall using incorrect formula file --- Library/Homebrew/formula_installer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index f5c38433fa..d3d2833fb8 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -1115,7 +1115,7 @@ on_request: installed_on_request?, options: options) # the formula from the tap. formula_path = begin keg_formula_path = formula.opt_prefix/".brew/#{formula.name}.rb" - tap_formula_path = formula.path + tap_formula_path = formula.specified_path keg_formula = Formulary.factory(keg_formula_path) tap_formula = Formulary.factory(tap_formula_path) if tap_formula_path.exist? other_version_installed = (keg_formula.pkg_version != tap_formula&.pkg_version)