aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2014-06-07 17:49:07 -0500
committerJack Nagel2014-06-07 21:15:56 -0500
commit376b0556da574ffc3fb3ad00aa1d892801ed5ad0 (patch)
tree9ee0f7b0b2866f00ce12be75434af6e84259b3e7 /Library/Homebrew/cmd
parent8718b62113b30b34a6a2acfc28277477fae237e3 (diff)
downloadhomebrew-376b0556da574ffc3fb3ad00aa1d892801ed5ad0.tar.bz2
Eliminate FORMULA_META_FILES constant
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/list.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/list.rb b/Library/Homebrew/cmd/list.rb
index 8952f4873..4ca2d8531 100644
--- a/Library/Homebrew/cmd/list.rb
+++ b/Library/Homebrew/cmd/list.rb
@@ -1,3 +1,5 @@
+require "metafiles"
+
module Homebrew extend self
def list
@@ -100,7 +102,7 @@ class PrettyListing
else
print_dir pn
end
- elsif FORMULA_META_FILES.should_list? pn.basename.to_s
+ elsif Metafiles.list?(pn.basename.to_s)
puts pn
end
end