diff options
| author | Jack Nagel | 2013-12-19 16:36:49 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-12-19 16:43:46 -0600 |
| commit | 53589c3f4c30cfed6bf8e87f53fdc17acca7e3b0 (patch) | |
| tree | 90c6621bc573879ab84ecdf84dbbec41927f70cf /Library | |
| parent | 6404085835b09c327b081751e2cb86137781aba5 (diff) | |
| download | homebrew-53589c3f4c30cfed6bf8e87f53fdc17acca7e3b0.tar.bz2 | |
Note when --only-dependencies is a no-op
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 7 |
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) |
