Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sandbox: stop printing message. #3016

Merged
merged 1 commit into from
Aug 7, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 0 additions & 2 deletions Library/Homebrew/cmd/postinstall.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ def run_post_install(formula)
args << "--devel"
end

Sandbox.print_sandbox_message if Sandbox.formula?(formula)

Utils.safe_fork do
if Sandbox.formula?(formula)
sandbox = Sandbox.new
Expand Down
2 changes: 0 additions & 2 deletions Library/Homebrew/dev-cmd/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ def test
args << "--devel"
end

Sandbox.print_sandbox_message if Sandbox.test?

Utils.safe_fork do
if Sandbox.test?
sandbox = Sandbox.new
Expand Down
2 changes: 0 additions & 2 deletions Library/Homebrew/formula_installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -679,8 +679,6 @@ def build
#{formula.specified_path}
].concat(build_argv)

Sandbox.print_sandbox_message if Sandbox.formula?(formula)

Utils.safe_fork do
# Invalidate the current sudo timestamp in case a build script calls sudo.
# Travis CI's Linux sudoless workers have a weird sudo that fails here.
Expand Down
6 changes: 0 additions & 6 deletions Library/Homebrew/sandbox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@ def self.test?
!ARGV.no_sandbox?
end

def self.print_sandbox_message
return if @printed_sandbox_message
ohai "Using the sandbox"
@printed_sandbox_message = true
end

def initialize
@profile = SandboxProfile.new
end
Expand Down