From 25c7b49eeeb6d47aa21c198148b8de1d76253041 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 25 Mar 2014 01:36:12 -0500 Subject: [PATCH] Don't load the full debugger when readline is the formula being installed Fixes Homebrew/homebrew#27842. --- Library/Homebrew/formula_installer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index f1612e8d43..e2be278b03 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -200,7 +200,7 @@ class FormulaInstaller # HACK: If readline is present in the dependency tree, it will clash # with the stdlib's Readline module when the debugger is loaded def perform_readline_hack - if f.recursive_dependencies.any? { |d| d.name == "readline" } && debug? + if (f.recursive_dependencies.any? { |d| d.name == "readline" } || f.name == "readline") && debug? ENV['HOMEBREW_NO_READLINE'] = '1' end end