aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-08-15 15:23:43 -0700
committerAdam Vandenberg2010-08-15 15:23:43 -0700
commitf5b66f2a0445acd432e303df11e8ecb74dfcc852 (patch)
treebf774166825177cc97c5e1a2577c4dca25af084f /Library
parentbdd9e1aeff8f450423df6b62976eef63080e13b1 (diff)
downloadbrew-f5b66f2a0445acd432e303df11e8ecb74dfcc852.tar.bz2
Tweak brew missing
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/examples/brew-missing.rb7
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?