diff options
| author | Alyssa Ross | 2016-10-05 21:14:43 +0100 |
|---|---|---|
| committer | Alyssa Ross | 2016-10-25 22:36:13 +0100 |
| commit | 422f38b945ac9f13ea5f9290b022a18c811445e4 (patch) | |
| tree | b0feb9d55b090de738756b6d9d2c39620e0830b5 /Library/Homebrew/cmd | |
| parent | 0cd983487c97ff373ccd0a73631ff57ae1b3baa0 (diff) | |
| download | brew-422f38b945ac9f13ea5f9290b022a18c811445e4.tar.bz2 | |
missing: call Formula#missing_dependencies directly
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/missing.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/missing.rb b/Library/Homebrew/cmd/missing.rb index 4a9e0b7b3..44d2aa8ae 100644 --- a/Library/Homebrew/cmd/missing.rb +++ b/Library/Homebrew/cmd/missing.rb @@ -18,8 +18,13 @@ module Homebrew ARGV.resolved_formulae end - Diagnostic.missing_deps(ff, ARGV.value("hide")) do |name, missing| - print "#{name}: " if ff.size > 1 + hide = (ARGV.value("hide") || "").split(",") + + ff.each do |f| + missing = f.missing_dependencies(hide: hide) + next if missing.empty? + + print "#{f}: " if ff.size > 1 puts missing.join(" ") end end |
