diff options
| author | Mike McQuaid | 2016-08-24 11:06:33 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-08-24 11:06:58 +0100 |
| commit | 03352805c66c8f545fad59f7007f615a55d3e37b (patch) | |
| tree | 24baa3170e186823526ed0386f044b8c13a5df58 /Library/Homebrew | |
| parent | 8cc027a3cd24b95120932c581c8b9eebb8c710f3 (diff) | |
| download | brew-03352805c66c8f545fad59f7007f615a55d3e37b.tar.bz2 | |
tap: use utils link_path_manpages.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/tap.rb | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/Library/Homebrew/tap.rb b/Library/Homebrew/tap.rb index fb194a5bb..8dd7fd155 100644 --- a/Library/Homebrew/tap.rb +++ b/Library/Homebrew/tap.rb @@ -248,26 +248,7 @@ class Tap end def link_manpages - return unless (path/"man").exist? - conflicts = [] - (path/"man").find do |src| - next if src.directory? - dst = HOMEBREW_PREFIX/"share"/src.relative_path_from(path) - next if dst.symlink? && src == dst.resolved_path - if dst.exist? - conflicts << dst - next - end - dst.make_relative_symlink(src) - end - unless conflicts.empty? - onoe <<-EOS.undent - Could not link #{name} manpages to: - #{conflicts.join("\n")} - - Please delete these files and run `brew tap --repair`. - EOS - end + link_path_manpages(path, "brew tap --repair") end # uninstall this {Tap}. |
