diff options
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/options.rb | 4 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/uses.rb | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 0494f4c3f..6e3dce11e 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -8,7 +8,7 @@ module Homebrew extend self problem_count = 0 ff = if ARGV.named.empty? - Formula.all + Formula else ARGV.formulae end diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index ad72a6dfc..a6cedd2ff 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -707,7 +707,7 @@ def check_for_linked_keg_only_brews warnings = Hash.new - Formula.all.each do |f| + Formula.each do |f| next unless f.keg_only? and f.installed? links = __check_linked_brew f warnings[f.name] = links unless links.empty? diff --git a/Library/Homebrew/cmd/options.rb b/Library/Homebrew/cmd/options.rb index 2f64f5b39..9cb41f7bb 100644 --- a/Library/Homebrew/cmd/options.rb +++ b/Library/Homebrew/cmd/options.rb @@ -3,11 +3,11 @@ require 'cmd/outdated' def ff if ARGV.include? "--all" - Formula.all + Formula elsif ARGV.include? "--installed" # outdated brews count as installed outdated = Homebrew.outdated_brews.collect{ |b| b.name } - Formula.all.select do |f| + Formula.select do |f| f.installed? or outdated.include? f.name end else diff --git a/Library/Homebrew/cmd/uses.rb b/Library/Homebrew/cmd/uses.rb index 6c5886a8c..fc463c6f3 100644 --- a/Library/Homebrew/cmd/uses.rb +++ b/Library/Homebrew/cmd/uses.rb @@ -9,7 +9,7 @@ module Homebrew extend self def uses raise FormulaUnspecifiedError if ARGV.named.empty? - uses = Formula.all.select do |f| + uses = Formula.select do |f| ARGV.formulae.all? do |ff| if ARGV.flag? '--recursive' f.recursive_deps.include? ff |
