mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Ignore 7z unless available
`DebugSystem#system` is prepended in vcs.rb and defaulted to `exception: true`.
This commit is contained in:
parent
165a098ffc
commit
24e5f1c982
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ PACKAGES = {
|
|||
"zip" => %w".zip zip -Xqr",
|
||||
}
|
||||
DEFAULT_PACKAGES = PACKAGES.keys - ["tar"]
|
||||
if !$no7z and system("7z", out: IO::NULL)
|
||||
if !$no7z and system("7z", out: IO::NULL, exception: false)
|
||||
PACKAGES["gzip"] = %w".tar.gz 7z a dummy -tgzip -mx -so"
|
||||
PACKAGES["zip"] = %w".zip 7z a -tzip -l -mx -mtc=off" << {out: IO::NULL}
|
||||
elsif gzip = ENV.delete("GZIP")
|
||||
|
|
Loading…
Reference in a new issue