aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMax Howell2010-09-12 22:10:28 +0100
committerMax Howell2010-09-12 22:10:28 +0100
commit2f438179a7dbfe7599e6e20727600556a5f521c3 (patch)
treeb3892c20ce04447a747ad35481e5d0caf3a44db4 /Library/Homebrew
parent400507b18acfa3705e21831637bd1ea32a44143e (diff)
downloadbrew-2f438179a7dbfe7599e6e20727600556a5f521c3.tar.bz2
Don't descend keg-root symlinks, just show where they point
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/brew.h.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb
index 8917322c9..76f56365c 100644
--- a/Library/Homebrew/brew.h.rb
+++ b/Library/Homebrew/brew.h.rb
@@ -495,7 +495,11 @@ class PrettyListing
end
else
if pn.directory?
- print_dir pn
+ if pn.symlink?
+ puts "#{pn} -> #{pn.readlink}"
+ else
+ print_dir pn
+ end
elsif not FORMULA_META_FILES.include? pn.basename.to_s
puts pn
end