mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rubygems/commands/update_command.rb (do_rubygems_update): use
portable and safely ENV operation. reported in <http://slashdot.jp/developers/comments.pl?sid=384937&cid=1273085>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f548ed48eb
commit
992cc9469b
2 changed files with 10 additions and 5 deletions
|
@ -1,3 +1,9 @@
|
|||
Thu Dec 27 22:31:37 2007 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* lib/rubygems/commands/update_command.rb (do_rubygems_update): use
|
||||
portable and safely ENV operation. reported in
|
||||
<http://slashdot.jp/developers/comments.pl?sid=384937&cid=1273085>.
|
||||
|
||||
Thu Dec 27 21:47:04 2007 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* mkconfig.rb (prefix): archdir is "1.9.0", not "1.9". reported in
|
||||
|
|
|
@ -122,11 +122,10 @@ class Gem::Commands::UpdateCommand < Gem::Command
|
|||
setup_cmd = "#{Gem.ruby} setup.rb #{args.join ' '}"
|
||||
|
||||
# Make sure old rubygems isn't loaded
|
||||
if Gem.win_platform? then
|
||||
system "set RUBYOPT= & #{setup_cmd}"
|
||||
else
|
||||
system "RUBYOPT=\"\" #{setup_cmd}"
|
||||
end
|
||||
old = ENV["RUBYOPT"]
|
||||
ENV.delete("RUBYOPT")
|
||||
system setup_cmd
|
||||
ENV["RUBYOPT"] = old if old
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue