From 443eb6910d9b4f56bb55b1702da6d39eeef2430f Mon Sep 17 00:00:00 2001 From: Max Howell Date: Sun, 12 Sep 2010 22:10:28 +0100 Subject: Don't descend keg-root symlinks, just show where they point --- Library/Homebrew/brew.h.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Library') 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 -- cgit v1.2.3