mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Don't redownload rubygems-update
package if already there
This makes it easier to test the upgrade process locally and should be more efficient in certain cases where the user has already upgraded in the past. https://github.com/rubygems/rubygems/commit/ed6cc88494
This commit is contained in:
parent
56a0f34d31
commit
dd022c1f76
1 changed files with 1 additions and 2 deletions
|
@ -286,9 +286,8 @@ command to remove old versions.
|
|||
|
||||
check_oldest_rubygems version
|
||||
|
||||
update_gem 'rubygems-update', version
|
||||
|
||||
installed_gems = Gem::Specification.find_all_by_name 'rubygems-update', requirement
|
||||
installed_gems = update_gem('rubygems-update', version) if installed_gems.empty?
|
||||
version = installed_gems.first.version
|
||||
|
||||
install_rubygems version
|
||||
|
|
Loading…
Add table
Reference in a new issue