aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/list.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2012-09-09 13:19:53 -0700
committerAdam Vandenberg2012-11-11 10:27:03 -0800
commit4b72e444613509b3102a94de1d1029a9318fcbad (patch)
treee721a0f1810d016d601957031ce289c880afc368 /Library/Homebrew/cmd/list.rb
parentff55e7d82e7087567c9a370817d25e1542ff31f9 (diff)
downloadbrew-4b72e444613509b3102a94de1d1029a9318fcbad.tar.bz2
Use a class for FORMULA_META_FILES
* lets more text types get picked up * better filter for `brew list`
Diffstat (limited to 'Library/Homebrew/cmd/list.rb')
-rw-r--r--Library/Homebrew/cmd/list.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/list.rb b/Library/Homebrew/cmd/list.rb
index 50e40c649..ba33f2bde 100644
--- a/Library/Homebrew/cmd/list.rb
+++ b/Library/Homebrew/cmd/list.rb
@@ -64,7 +64,7 @@ class PrettyListing
else
print_dir pn
end
- elsif not (FORMULA_META_FILES + %w[.DS_Store INSTALL_RECEIPT.json]).include? pn.basename.to_s
+ elsif FORMULA_META_FILES.should_list? pn.basename.to_s
puts pn
end
end