aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/exceptions.rb
diff options
context:
space:
mode:
authorJack Nagel2013-04-03 18:26:40 -0500
committerJack Nagel2013-04-03 18:27:28 -0500
commit591496ccbfd39192b06c0d0b571f984d479b5e5b (patch)
treeb83ef71b11133f604ce9f7a2d8c910c12bef379b /Library/Homebrew/exceptions.rb
parent71fd5b1f46b56423c89b70bd0a746d2dd0ce95c9 (diff)
downloadhomebrew-591496ccbfd39192b06c0d0b571f984d479b5e5b.tar.bz2
Don't error out when a package is already installed
Fixes #17010.
Diffstat (limited to 'Library/Homebrew/exceptions.rb')
-rw-r--r--Library/Homebrew/exceptions.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb
index 43075003a..d57f5ddc3 100644
--- a/Library/Homebrew/exceptions.rb
+++ b/Library/Homebrew/exceptions.rb
@@ -71,6 +71,9 @@ end
class CannotInstallFormulaError < RuntimeError
end
+class FormulaAlreadyInstalledError < RuntimeError
+end
+
class FormulaInstallationAlreadyAttemptedError < Homebrew::InstallationError
def message
"Formula installation already attempted: #{formula}"