ruby-changes:53575
From: nobu <ko1@a...>
Date: Mon, 19 Nov 2018 08:29:46 +0900 (JST)
Subject: [ruby-changes:53575] nobu:r65791 (trunk): update-deps: fix runtime error [ci skip]
nobu 2018-11-19 08:29:40 +0900 (Mon, 19 Nov 2018) New Revision: 65791 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65791 Log: update-deps: fix runtime error [ci skip] * tool/update-deps (init_global): environment strings are frozen. Modified files: trunk/tool/update-deps Index: tool/update-deps =================================================================== --- tool/update-deps (revision 65790) +++ tool/update-deps (revision 65791) @@ -239,7 +239,7 @@ DEPENDENCIES_SECTION_END_MARK = "\# AUTO https://github.com/ruby/ruby/blob/trunk/tool/update-deps#L239 def init_global ENV['LC_ALL'] = 'C' - if mkflag = ENV['GNUMAKEFLAGS'] and mkflag.sub!(/(\A|\s+)-j\d*(?=\s+|\z)/, '') + if mkflag0 = ENV['GNUMAKEFLAGS'] and (mkflag = mkflag0.sub(/(\A|\s+)-j\d*(?=\s+|\z)/, '')) != mkflag0 mkflag.strip! ENV['GNUMAKEFLAGS'] = mkflag end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/