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
commit443eb6910d9b4f56bb55b1702da6d39eeef2430f (patch)
treef259f6c4f443d38e31e296cf0597fb69caefc59a /Library/Homebrew
parentf2cd158a80117f7c500384858f5cdac7a4833749 (diff)
downloadhomebrew-443eb6910d9b4f56bb55b1702da6d39eeef2430f.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