aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMax Howell2009-10-08 23:41:56 +0100
committerMax Howell2009-10-09 00:09:05 +0100
commitd5d56e6ace33142bfd1ae19d2b93811a10239b86 (patch)
tree3b1ac898c36e33434bd06e4dd208774dfdfff659 /bin
parent8896c23f213f5554ba09dbe963de0f13327ea85a (diff)
downloadbrew-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.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/brew b/bin/brew
index 1e359576f..721e9cc2e 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'