[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
@ -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…
x
Reference in New Issue
Block a user