Tweak brew missing
This commit is contained in:
parent
bdd9e1aeff
commit
f5b66f2a04
@ -11,11 +11,8 @@ def main
|
|||||||
f_deps = FormulaInstaller.expand_deps(f).collect{|g| g.name}.uniq
|
f_deps = FormulaInstaller.expand_deps(f).collect{|g| g.name}.uniq
|
||||||
next if f_deps.empty?
|
next if f_deps.empty?
|
||||||
|
|
||||||
missing_deps = []
|
missing_deps = f_deps.reject do |dep_name|
|
||||||
f_deps.each do |dep_name|
|
Formula.factory(dep_name).installed? or outdated.include?(dep_name)
|
||||||
unless Formula.factory(dep_name).installed? or outdated.include?(dep_name)
|
|
||||||
missing_deps << dep_name
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
puts "#{f.name}: #{missing_deps.join(', ')}" unless missing_deps.empty?
|
puts "#{f.name}: #{missing_deps.join(', ')}" unless missing_deps.empty?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user