diff options
| author | Max Howell | 2009-10-08 23:41:56 +0100 |
|---|---|---|
| committer | Max Howell | 2009-10-09 00:09:05 +0100 |
| commit | d5d56e6ace33142bfd1ae19d2b93811a10239b86 (patch) | |
| tree | 3b1ac898c36e33434bd06e4dd208774dfdfff659 | |
| parent | 8896c23f213f5554ba09dbe963de0f13327ea85a (diff) | |
| download | brew-d5d56e6ace33142bfd1ae19d2b93811a10239b86.tar.bz2 | |
Don't allow interactive installs if deps aren't installed
Mainly because this feature is for devs and the code is too messy to fix it properly yet.
| -rwxr-xr-x | bin/brew | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -136,6 +136,11 @@ begin deps = [] formulae.each { |f| deps += expand_deps f } formulae = deps.reject { |f| f.installed? } + + if formulae.length > 1 and ARGV.interactive? + # because current code is a mess + raise "Please install the formula's dependencies before entering interactive mode" + end end require 'set' |
