Merge pull request #1074 from DomT4/sandy

sandbox: tweaks
This commit is contained in:
Mike McQuaid 2016-09-22 08:39:30 +01:00 committed by GitHub
commit 2926aa470b

View File

@ -3,8 +3,12 @@ require "tempfile"
class Sandbox
SANDBOX_EXEC = "/usr/bin/sandbox-exec".freeze
SANDBOXED_TAPS = [
"homebrew/core",
SANDBOXED_TAPS = %w[
homebrew/core
homebrew/dupes
homebrew/fuse
homebrew/devel-only
homebrew/tex
].freeze
def self.available?
@ -73,7 +77,7 @@ class Sandbox
# Xcode projects expect access to certain cache/archive dirs.
def allow_write_xcode
allow_write_path "/Users/#{ENV["USER"]}/Library/Developer/Xcode/DerivedData/"
allow_write_path "/Users/#{ENV["USER"]}/Library/Developer"
end
def allow_write_log(formula)