diff options
| author | Adam Vandenberg | 2010-08-15 15:23:43 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-08-15 15:23:43 -0700 |
| commit | f5b66f2a0445acd432e303df11e8ecb74dfcc852 (patch) | |
| tree | bf774166825177cc97c5e1a2577c4dca25af084f /Library | |
| parent | bdd9e1aeff8f450423df6b62976eef63080e13b1 (diff) | |
| download | brew-f5b66f2a0445acd432e303df11e8ecb74dfcc852.tar.bz2 | |
Tweak brew missing
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/examples/brew-missing.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Library/Contributions/examples/brew-missing.rb b/Library/Contributions/examples/brew-missing.rb index 980597ced..af6aba069 100755 --- a/Library/Contributions/examples/brew-missing.rb +++ b/Library/Contributions/examples/brew-missing.rb @@ -11,11 +11,8 @@ def main f_deps = FormulaInstaller.expand_deps(f).collect{|g| g.name}.uniq next if f_deps.empty? - missing_deps = [] - f_deps.each do |dep_name| - unless Formula.factory(dep_name).installed? or outdated.include?(dep_name) - missing_deps << dep_name - end + missing_deps = f_deps.reject do |dep_name| + Formula.factory(dep_name).installed? or outdated.include?(dep_name) end puts "#{f.name}: #{missing_deps.join(', ')}" unless missing_deps.empty? |
