Permalink
Browse files

Show which deps will also be installed.

  • Loading branch information...
1 parent ef1e268 commit 5ea406ca0fde3adab64c9534fe5e4d8b51f873b1 @adamv adamv committed Apr 6, 2011
Showing with 6 additions and 2 deletions.
  1. +6 −2 Library/Homebrew/formula_installer.rb
@@ -16,8 +16,12 @@ def go
end
unless ignore_deps
- @f.recursive_deps.each do |dep|
- FormulaInstaller.install_formula dep unless dep.installed?
+ needed_deps = @f.recursive_deps.reject {|d| d.installed?}
+ unless needed_deps.empty?
+ puts "Also installing dependencies: "+needed_deps*", "
+ needed_deps.each do |dep|
+ FormulaInstaller.install_formula dep
+ end
end
begin
FormulaInstaller.check_external_deps @f

0 comments on commit 5ea406c

Please sign in to comment.