diff options
| author | Adam Vandenberg | 2013-06-23 16:32:31 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-06-24 07:31:44 -0700 |
| commit | d8d41ccabcb78258bae1df50c3a6148f3811fc5d (patch) | |
| tree | 30d883e6f15d973f8b9fc93adeb6d2e4d05f7049 /Library/Homebrew | |
| parent | 0a75bb745aecaecd817034070694e1879dd0c666 (diff) | |
| download | homebrew-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.rb | 4 |
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 } |
