diff options
| author | Adam Vandenberg | 2010-10-20 20:05:44 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-10-20 20:05:44 -0700 |
| commit | b82be5c8b0d3482da165d6ee8bbd0ddfce547695 (patch) | |
| tree | 43e4fd9ad1e433cace96651cb7773b7d33628045 /Library | |
| parent | b6bd22bfc98f79843d0a68a3d31b08d1932ddb81 (diff) | |
| download | brew-b82be5c8b0d3482da165d6ee8bbd0ddfce547695.tar.bz2 | |
brew-doctor - fix keg-only check
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/brew_doctor.rb | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Library/Homebrew/brew_doctor.rb b/Library/Homebrew/brew_doctor.rb index 0db2e78ca..462445e70 100644 --- a/Library/Homebrew/brew_doctor.rb +++ b/Library/Homebrew/brew_doctor.rb @@ -524,8 +524,15 @@ def __check_linked_brew f Pathname.new(f.prefix).find do |src| dst=HOMEBREW_PREFIX+src.relative_path_from(f.prefix) next unless dst.symlink? - links_found << dst unless src.directory? - Find.prune if src.directory? + + dst_points_to = dst.realpath() + next unless dst_points_to.to_s == src.to_s + + if src.directory? + Find.prune + else + links_found << dst + end end return links_found |
