From 591496ccbfd39192b06c0d0b571f984d479b5e5b Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 3 Apr 2013 18:26:40 -0500 Subject: Don't error out when a package is already installed Fixes #17010. --- Library/Homebrew/cmd/install.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Library/Homebrew/cmd') diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb index ef01d0452..f44f67091 100644 --- a/Library/Homebrew/cmd/install.rb +++ b/Library/Homebrew/cmd/install.rb @@ -91,6 +91,8 @@ module Homebrew extend self 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. + rescue FormulaAlreadyInstalledError => e + opoo e.message rescue CannotInstallFormulaError => e ofail e.message end -- cgit v1.2.3