aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-12-19 16:36:49 -0600
committerJack Nagel2013-12-19 16:43:46 -0600
commit53589c3f4c30cfed6bf8e87f53fdc17acca7e3b0 (patch)
tree90c6621bc573879ab84ecdf84dbbec41927f70cf /Library
parent6404085835b09c327b081751e2cb86137781aba5 (diff)
downloadhomebrew-53589c3f4c30cfed6bf8e87f53fdc17acca7e3b0.tar.bz2
Note when --only-dependencies is a no-op
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)