formula_installer: use Sandbox.formula? method.
This commit is contained in:
parent
6e887fbf5a
commit
6375adc0ff
@ -588,15 +588,13 @@ class FormulaInstaller
|
|||||||
#{formula.path}
|
#{formula.path}
|
||||||
].concat(build_argv)
|
].concat(build_argv)
|
||||||
|
|
||||||
if Sandbox.available? && ARGV.sandbox?
|
Sandbox.print_sandbox_message if Sandbox.formula?(formula)
|
||||||
Sandbox.print_sandbox_message
|
|
||||||
end
|
|
||||||
|
|
||||||
Utils.safe_fork do
|
Utils.safe_fork do
|
||||||
# Invalidate the current sudo timestamp in case a build script calls sudo
|
# Invalidate the current sudo timestamp in case a build script calls sudo
|
||||||
system "/usr/bin/sudo", "-k"
|
system "/usr/bin/sudo", "-k"
|
||||||
|
|
||||||
if Sandbox.available? && ARGV.sandbox?
|
if Sandbox.formula?(formula)
|
||||||
sandbox = Sandbox.new
|
sandbox = Sandbox.new
|
||||||
formula.logs.mkpath
|
formula.logs.mkpath
|
||||||
sandbox.record_log(formula.logs/"sandbox.build.log")
|
sandbox.record_log(formula.logs/"sandbox.build.log")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user