diff options
| author | Jack Nagel | 2013-12-19 16:36:49 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-12-19 16:43:46 -0600 |
| commit | 76a45df3251533eb2320db49c3f56b1ad3918f9c (patch) | |
| tree | 2074d4fdf1365f8a0b8749805f1db2f61cc5c4c4 /Library | |
| parent | b5249432267a6086df2c39fa1c5c26c14db7d513 (diff) | |
| download | brew-76a45df3251533eb2320db49c3f56b1ad3918f9c.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) |
