From d5d56e6ace33142bfd1ae19d2b93811a10239b86 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Thu, 8 Oct 2009 23:41:56 +0100 Subject: [PATCH] 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. --- bin/brew | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/brew b/bin/brew index 1e359576f2..721e9cc2e1 100755 --- a/bin/brew +++ b/bin/brew @@ -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'