aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/list.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd/list.rb')
-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