diff options
| author | Jack Nagel | 2013-04-03 18:26:40 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-04-03 18:27:28 -0500 |
| commit | 591496ccbfd39192b06c0d0b571f984d479b5e5b (patch) | |
| tree | b83ef71b11133f604ce9f7a2d8c910c12bef379b /Library/Homebrew/cmd | |
| parent | 71fd5b1f46b56423c89b70bd0a746d2dd0ce95c9 (diff) | |
| download | homebrew-591496ccbfd39192b06c0d0b571f984d479b5e5b.tar.bz2 | |
Don't error out when a package is already installed
Fixes #17010.
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/install.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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 |
