aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorAdam Vandenberg2013-06-23 16:32:31 -0700
committerAdam Vandenberg2013-06-24 07:31:44 -0700
commitd8d41ccabcb78258bae1df50c3a6148f3811fc5d (patch)
tree30d883e6f15d973f8b9fc93adeb6d2e4d05f7049 /Library/Homebrew
parent0a75bb745aecaecd817034070694e1879dd0c666 (diff)
downloadhomebrew-d8d41ccabcb78258bae1df50c3a6148f3811fc5d.tar.bz2
Show conflicting files on install if linking fails
Closes #18303. Closes #20726.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/formula_installer.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 06b965e64..44e57c730 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -364,6 +364,10 @@ class FormulaInstaller
onoe "The `brew link` step did not complete successfully"
puts "The formula built, but is not symlinked into #{HOMEBREW_PREFIX}"
puts "You can try again using `brew link #{f.name}'"
+ puts
+ puts "Possible conflicting files are:"
+ mode = OpenStruct.new(:dry_run => true, :overwrite => true)
+ keg.link(mode)
ohai e, e.backtrace if ARGV.debug?
@show_summary_heading = true
ignore_interrupts{ keg.unlink }