1
0
Fork 0
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:
Nobuyoshi Nakada 2021-07-26 14:17:30 +09:00
parent 165a098ffc
commit 24e5f1c982
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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")