This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Show conflicting files on install if linking fails

Closes #18303.
Closes #20726.
  • Loading branch information...
adamv committed Jun 23, 2013
1 parent 0a75bb7 commit d8d41ccabcb78258bae1df50c3a6148f3811fc5d
Showing with 4 additions and 0 deletions.
  1. +4 −0 Library/Homebrew/formula_installer.rb
@@ -364,6 +364,10 @@ def link
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 }

0 comments on commit d8d41cc

Please sign in to comment.