diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2022-09-07 23:01:03 +0200 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-09-09 19:38:52 +0900 |
commit | b350053ae47dc4653ecb85f64360cf6eafba6323 (patch) | |
tree | 7a4b35689f0e41e16b9a3c1b9e6c38df1d359a7a /lib/rubygems | |
parent | cfe10e482e0657195cadf01f0be72e11b7fb62b4 (diff) |
[rubygems/rubygems] Fix resolution on non-musl platforms
Gems without specific platform were being preferred over matching
platform specific gems.
https://github.com/rubygems/rubygems/commit/37b95b9159
Diffstat (limited to 'lib/rubygems')
-rw-r--r-- | lib/rubygems/resolver.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/resolver.rb b/lib/rubygems/resolver.rb index bf7d6d943b..76d1e9d0cc 100644 --- a/lib/rubygems/resolver.rb +++ b/lib/rubygems/resolver.rb @@ -246,7 +246,7 @@ class Gem::Resolver sources.each do |source| groups[source]. - sort_by {|spec| [spec.version, Gem::Platform.local =~ spec.platform ? 1 : 0] }. + sort_by {|spec| [spec.version, spec.platform =~ Gem::Platform.local ? 1 : 0] }. map {|spec| ActivationRequest.new spec, dependency }. each {|activation_request| activation_requests << activation_request } end |