aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2012-11-12 09:56:45 -0800
committerAdam Vandenberg2012-11-12 09:56:45 -0800
commit50308e9d75faee1878b6981a558e5d4d7274c6b7 (patch)
tree8146b92ac2c1449d1b298bed9b7ba7d8c2d7cbf5 /Library
parent75d6c55cfdb6e4d034318efc647eb56f405e2a76 (diff)
downloadhomebrew-50308e9d75faee1878b6981a558e5d4d7274c6b7.tar.bz2
exclude repository from brew list --unbrewed
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/list.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/list.rb b/Library/Homebrew/cmd/list.rb
index ba33f2bde..4b0aa4a13 100644
--- a/Library/Homebrew/cmd/list.rb
+++ b/Library/Homebrew/cmd/list.rb
@@ -30,6 +30,10 @@ private
cache_folder = (HOMEBREW_CACHE.relative_path_from(HOMEBREW_PREFIX)).to_s
dirs -= [cache_folder]
+ # Exclude the repository, if it has been located under the prefix
+ cache_folder = (HOMEBREW_REPOSITORY.relative_path_from(HOMEBREW_PREFIX)).to_s
+ dirs -= [cache_folder]
+
cd HOMEBREW_PREFIX
exec 'find', *dirs + %w[-type f ( ! -iname .ds_store ! -iname brew ! -iname brew-man.1 ! -iname brew.1 )]
end