Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
Show conflicting files on install if linking fails
Browse files Browse the repository at this point in the history
Closes #18303.
Closes #20726.
  • Loading branch information
adamv committed Jun 24, 2013
1 parent 0a75bb7 commit d8d41cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Library/Homebrew/formula_installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit d8d41cc

Please sign in to comment.