aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-10-16 15:34:43 -0500
committerJack Nagel2013-10-16 15:34:43 -0500
commitb1aa9883558f41f59a5d5f020251d0d2775bef44 (patch)
treef28cab8288826d5cb416d4dae562873c792f80d7 /Library
parentfd23ad81bc183845478ae47890bddea763dc07c4 (diff)
downloadhomebrew-b1aa9883558f41f59a5d5f020251d0d2775bef44.tar.bz2
Don't print multiple deps messages when only installing one dep
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index b26d4b7b3..f09a2d6eb 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -315,7 +315,10 @@ class FormulaInstaller
end
def install_dependencies
- oh1 "Installing dependencies for #{f}: #{Tty.green}#{effective_deps.join(", ")}#{Tty.reset}" if not effective_deps.empty?
+ if effective_deps.length > 1
+ oh1 "Installing dependencies for #{f}: #{Tty.green}#{effective_deps*", "}#{Tty.reset}"
+ end
+
effective_deps.each do |dep|
if dep.requested?
install_dependency(dep)