aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
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?