diff options
| author | Xu Cheng | 2016-08-17 22:52:19 +0800 |
|---|---|---|
| committer | Xu Cheng | 2016-08-18 13:35:52 +0800 |
| commit | af3ad3cb86faf73b3c9f089fa496a0e01f43b9f0 (patch) | |
| tree | f8d008d54508d6f1ff49f9d82b8717790021d8d9 /Library | |
| parent | 91c5dee5a0e5b147ea7b6a1a2edd36529953ffb5 (diff) | |
| download | brew-af3ad3cb86faf73b3c9f089fa496a0e01f43b9f0.tar.bz2 | |
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>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/sandbox.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/sandbox.rb b/Library/Homebrew/sandbox.rb index b1493369a..dece2e4a5 100644 --- a/Library/Homebrew/sandbox.rb +++ b/Library/Homebrew/sandbox.rb @@ -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) |
