aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula_installer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/formula_installer.rb')
-rw-r--r--Library/Homebrew/formula_installer.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index db54f9d60..66d0827cd 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -24,6 +24,10 @@ class FormulaInstaller
end
def check_install_sanity
+ @@attempted ||= Set.new
+ raise FormulaInstallationAlreadyAttemptedError, f if @@attempted.include? f
+ @@attempted << f
+
if f.installed?
msg = "#{f}-#{f.installed_version} already installed"
msg << ", it's just not linked" if not f.linked_keg.symlink? and not f.keg_only?
@@ -112,10 +116,6 @@ class FormulaInstaller
oh1 "Installing #{f}" if show_header
- @@attempted ||= Set.new
- raise FormulaInstallationAlreadyAttemptedError, f if @@attempted.include? f
- @@attempted << f
-
if install_bottle
pour
else