diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-29 17:05:41 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-29 17:05:41 +0000 |
commit | be264f4a657c65f364490388e0c1d7a0119b42d1 (patch) | |
tree | 79684c60ce9dd118893f320449ae44517b615412 /tool/vcs.rb | |
parent | 3fa5bd38af50fb3d98de0ea51043d73f8d06a24b (diff) |
Suport ruby 1.9.3
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/vcs.rb')
-rw-r--r-- | tool/vcs.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/vcs.rb b/tool/vcs.rb index 9df3b38302..5697a1b1e4 100644 --- a/tool/vcs.rb +++ b/tool/vcs.rb @@ -91,10 +91,10 @@ else end using DebugPOpen module DebugSystem - def system(*args, exception: true, **opts) + def system(*args, **opts) STDERR.puts [*args, **opts].inspect if $DEBUG if RUBY_VERSION >= "2.6" - opts[:exception] = exception + opts[:exception] = true unless opts.key?(:exception) end ret = super(*args, **opts) raise "Command failed with status (#$?): #{args[0]}" if exception and !ret |