aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/install.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd/install.rb')
-rw-r--r--Library/Homebrew/cmd/install.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb
index c825e2796..8a99bd397 100644
--- a/Library/Homebrew/cmd/install.rb
+++ b/Library/Homebrew/cmd/install.rb
@@ -62,6 +62,7 @@ require "formula_installer"
require "tap"
require "hardware"
require "development_tools"
+require "historic"
module Homebrew
module_function
@@ -212,6 +213,18 @@ module Homebrew
ofail "What's updog?"
else
ofail e.message
+
+ migrations = search_for_migrated_formula(e.name)
+ return unless migrations.empty?
+
+ ohai "Searching among deleted formulae..."
+ begin
+ search_for_deleted_formula(e.name)
+ return
+ rescue
+ nil
+ end
+
query = query_regexp(e.name)
ohai "Searching for similarly named formulae..."