Use HOMEBREW_PREFIX/opt to find installs instead of symlinks in bin, lib, sbin.
Closes Homebrew/homebrew#25868. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
18f3b9f6d1
commit
4d3dbba644
@ -8,13 +8,9 @@ module Homebrew extend self
|
||||
|
||||
real_cellar = HOMEBREW_CELLAR.realpath
|
||||
|
||||
paths=%w[bin sbin lib].collect {|d| HOMEBREW_PREFIX+d}
|
||||
|
||||
paths.each do |path|
|
||||
path.find do |path|
|
||||
next unless path.symlink? && path.resolved_path_exists?
|
||||
brew_links << Pathname.new(path.realpath)
|
||||
end
|
||||
(HOMEBREW_PREFIX/'opt').subdirs.each do |path|
|
||||
next unless path.symlink? && path.resolved_path_exists?
|
||||
brew_links << Pathname.new(path.realpath)
|
||||
end
|
||||
|
||||
brew_links = brew_links.collect{|p|p.relative_path_from(real_cellar).to_s}.reject{|p|p.start_with?("../")}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user