aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 8990b3afc..9b2ccce2c 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)