aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-03-25 01:36:12 -0500
committerJack Nagel2014-03-25 01:39:43 -0500
commit97ed46e02afc355c298ea37bd80031ae5b5c246b (patch)
tree56aeb5a1537ff2036a312a485bb1c5b2b1909efd /Library
parent749841480608d6ee90acecd784452f329e712977 (diff)
downloadhomebrew-97ed46e02afc355c298ea37bd80031ae5b5c246b.tar.bz2
Don't load the full debugger when readline is the formula being installed
Fixes #27842.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index f1612e8d4..e2be278b0 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