diff options
| author | Adam Vandenberg | 2010-10-20 20:05:44 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-10-20 20:05:44 -0700 |
| commit | e0bfb6a1334b17e76f2c88aee92b0b0a1c0ea353 (patch) | |
| tree | a0942aafb9856ba92a1caf06ba789fa4a3ceb22b /Library/Homebrew | |
| parent | 9dd0af4c7db4c898aab048d36c93c7b371822222 (diff) | |
| download | homebrew-e0bfb6a1334b17e76f2c88aee92b0b0a1c0ea353.tar.bz2 | |
brew-doctor - fix keg-only check
Diffstat (limited to 'Library/Homebrew')
| -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 |
