1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add -mtc=off to 7z not to store NTFS timestamps

https://sevenzip.osdn.jp/chm/cmdline/switches/method.htm
This commit is contained in:
Kazuhiro NISHIYAMA 2019-09-23 00:55:48 +09:00
parent b0d24e262f
commit d8221a54f2
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

View file

@ -54,7 +54,7 @@ PACKAGES = {
DEFAULT_PACKAGES = PACKAGES.keys - ["tar"]
if !$no7z and system("7z", out: IO::NULL)
PACKAGES["gzip"] = %w".tar.gz 7z a dummy -tgzip -mx -so"
PACKAGES["zip"] = %w".zip 7z a -tzip -mx" << {out: IO::NULL}
PACKAGES["zip"] = %w".zip 7z a -tzip -mx -mtc=off" << {out: IO::NULL}
elsif gzip = ENV.delete("GZIP")
PACKAGES["gzip"].concat(gzip.shellsplit)
end