diff options
| author | Max Howell | 2009-09-22 19:58:10 +0100 |
|---|---|---|
| committer | Max Howell | 2009-09-22 19:58:10 +0100 |
| commit | b54bee33a1a876bfb0fe147d8dbf4b990a0f2816 (patch) | |
| tree | 8490cc3ede79eaf123bb4b7903b5581f33ad1b1b /bin/brew | |
| parent | 10b1f9404c37f87a73bacf32b9ac91a5f7442653 (diff) | |
| download | homebrew-b54bee33a1a876bfb0fe147d8dbf4b990a0f2816.tar.bz2 | |
brew install --ignore-dependencies
I used the same option flag as ruby gems does.
Diffstat (limited to 'bin/brew')
| -rwxr-xr-x | bin/brew | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -107,9 +107,11 @@ begin formulae = ARGV.formulae end - deps = [] - formulae.each { |f| deps += expand_deps f } - formulae = deps.reject { |f| f.installed? } + unless ARGV.include? '--ignore-dependencies' + deps = [] + formulae.each { |f| deps += expand_deps f } + formulae = deps.reject { |f| f.installed? } + end require 'set' done = Set.new |
