summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2021-07-26 15:43:46 +0900
committerNobuyoshi Nakada <[email protected]>2021-07-26 15:44:40 +0900
commitb8386f7f7f6d7a7d76481e02d389d0f5211f0f2c ()
tree268f33970d6e2834ab5598388f5399b39da87d4d
parent24e5f1c982966c379220b1bbb26b4e0320180fa1 (diff)
Prepend DebugSystem to VCS class only
And revert 24e5f1c982966c379220b1bbb26b4e0320180fa1, pepending to Kernel did not affect the top level methods before 3.0.
-rw-r--r--tool/lib/vcs.rb3
-rwxr-xr-xtool/make-snapshot2
2 files changed, 1 insertions, 4 deletions
@@ -52,9 +52,6 @@ module DebugSystem
ret
end
end
-module Kernel
- prepend(DebugSystem)
-end
class VCS
prepend(DebugSystem) if defined?(DebugSystem)
@@ -56,7 +56,7 @@ PACKAGES = {
"zip" => %w".zip zip -Xqr",
}
DEFAULT_PACKAGES = PACKAGES.keys - ["tar"]
-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")