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.
This commit is contained in:
parent
8896c23f21
commit
d5d56e6ace
5
bin/brew
5
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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user