aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-08-14 17:35:06 +0100
committerMike McQuaid2016-08-15 08:33:59 +0100
commit6375adc0ff00073740b49973aacfe81d4cd1099e (patch)
treefd818432eec873a5a1fa108269d1a768002ab92b /Library
parent6e887fbf5ac5bc1fb551a3e4222ad1804b490def (diff)
downloadbrew-6375adc0ff00073740b49973aacfe81d4cd1099e.tar.bz2
formula_installer: use Sandbox.formula? method.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 54581b232..03c9f8314 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -588,15 +588,13 @@ class FormulaInstaller
#{formula.path}
].concat(build_argv)
- if Sandbox.available? && ARGV.sandbox?
- Sandbox.print_sandbox_message
- end
+ Sandbox.print_sandbox_message if Sandbox.formula?(formula)
Utils.safe_fork do
# Invalidate the current sudo timestamp in case a build script calls sudo
system "/usr/bin/sudo", "-k"
- if Sandbox.available? && ARGV.sandbox?
+ if Sandbox.formula?(formula)
sandbox = Sandbox.new
formula.logs.mkpath
sandbox.record_log(formula.logs/"sandbox.build.log")