From 33483e9478bf8b48f69b1c517e634f499a47094b Mon Sep 17 00:00:00 2001 From: Shaun Jackman Date: Tue, 15 Dec 2020 00:04:36 -0800 Subject: [PATCH] Fix install --force-bottle for non-standard prefix Fix the error: Error: undefined method `stage' for nil:NilClass formula_installer.rb:1132:in `block in pour' --- 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 72fcfc6c70..1664002f7f 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -347,7 +347,7 @@ class FormulaInstaller # Warn if a more recent version of this formula is available in the tap. begin - if formula.pkg_version < (v = Formulary.factory(formula.full_name).pkg_version) + if formula.pkg_version < (v = Formulary.factory(formula.full_name, force_bottle: force_bottle?).pkg_version) opoo "#{formula.full_name} #{v} is available and more recent than version #{formula.pkg_version}." end rescue FormulaUnavailableError