mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Remove unnecessary sorting
Already done by the gem version promoter. https://github.com/rubygems/rubygems/commit/aae2cc9fe0
This commit is contained in:
parent
dce73c8616
commit
03d1962703
1 changed files with 0 additions and 7 deletions
|
@ -127,13 +127,6 @@ module Bundler
|
|||
results = results_for(dependency) + locked_results
|
||||
results = results.select {|spec| requirement_satisfied_by?(locked_requirement, nil, spec) } if locked_requirement
|
||||
|
||||
if !@prerelease_specified[name] && locked_results.empty?
|
||||
# Move prereleases to the beginning of the list, so they're considered
|
||||
# last during resolution.
|
||||
pre, results = results.partition {|spec| spec.version.prerelease? }
|
||||
results = pre + results
|
||||
end
|
||||
|
||||
if results.any?
|
||||
results = @gem_version_promoter.sort_versions(dependency, results)
|
||||
|
||||
|
|
Loading…
Reference in a new issue