From 76a45df3251533eb2320db49c3f56b1ad3918f9c Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 19 Dec 2013 16:36:49 -0600 Subject: [PATCH] Note when --only-dependencies is a no-op --- Library/Homebrew/formula_installer.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 8990b3afcc..9b2ccce2c0 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -176,8 +176,13 @@ class FormulaInstaller check_requirements(req_map) deps = [].concat(req_deps).concat(f.deps) + deps = expand_dependencies(deps) - install_dependencies expand_dependencies(deps) + if deps.empty? and only_deps + puts "All dependencies for #{f} are satisfied." + else + install_dependencies(deps) + end end def check_requirements(req_map)