disable sandbox for 10.5

Although `sandbox-exec` is available in 10.5, it has very limit
support on the DSL for sandbox profile file(.sb file). Therefore,
sandbox for Homebrew on 10.5 is broken.

Closes #735.

Signed-off-by: Xu Cheng <git@xuc.me>
This commit is contained in:
Xu Cheng 2016-08-17 22:52:19 +08:00
parent 91c5dee5a0
commit af3ad3cb86
No known key found for this signature in database
GPG Key ID: C2A3860FA0B459CE

View File

@ -8,7 +8,7 @@ class Sandbox
].freeze
def self.available?
OS.mac? && File.executable?(SANDBOX_EXEC)
OS.mac? && OS::Mac.version >= "10.6" && File.executable?(SANDBOX_EXEC)
end
def self.formula?(formula)