diff options
| author | Max Howell | 2010-09-12 22:10:28 +0100 |
|---|---|---|
| committer | Max Howell | 2010-09-12 22:10:28 +0100 |
| commit | 443eb6910d9b4f56bb55b1702da6d39eeef2430f (patch) | |
| tree | f259f6c4f443d38e31e296cf0597fb69caefc59a /Library/Homebrew | |
| parent | f2cd158a80117f7c500384858f5cdac7a4833749 (diff) | |
| download | homebrew-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.rb | 6 |
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 |
