From 13e34ec90d2ab814f12527ef9f943dde2da2e17f Mon Sep 17 00:00:00 2001 From: Steven Peters Date: Wed, 4 Dec 2019 09:08:22 +0000 Subject: [PATCH] FormulaInstaller: rescue already attempted install --- Library/Homebrew/formula_installer.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 2272f97d82..aca3adc486 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -598,6 +598,10 @@ class FormulaInstaller oh1 "Installing #{formula.full_name} dependency: #{Formatter.identifier(dep.name)}" fi.install fi.finish + rescue FormulaInstallationAlreadyAttemptedError + # We already attempted to install f as part of the dependency tree of + # another formula. In that case, don't generate an error, just move on. + nil rescue Exception # rubocop:disable Lint/RescueException ignore_interrupts do tmp_keg.rename(installed_keg) if tmp_keg && !installed_keg.directory?