diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2022-01-17 23:01:01 +0100 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-08-06 15:41:46 +0900 |
commit | 8dd63b89d97a0ab149288f2e46d814fb60cb3ba5 (patch) | |
tree | 794bbd63b562f3d6d87a1111ad870f08412bfdbe /lib | |
parent | 4ea521f6c7a288d985775ab0a380620db865fac4 (diff) |
[rubygems/rubygems] Move comment where the actual replacement happens
https://github.com/rubygems/rubygems/commit/d60acdf80d
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/definition.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb index 71322d6d41..536099a20a 100644 --- a/lib/bundler/definition.rb +++ b/lib/bundler/definition.rb @@ -740,9 +740,9 @@ module Bundler end specs.each do |s| - # Replace the locked dependency's source with the equivalent source from the Gemfile dep = @dependencies.find {|d| s.satisfies?(d) } + # Replace the locked dependency's source with the equivalent source from the Gemfile s.source = (dep && dep.source) || sources.get_with_fallback(s.source) next if @unlock[:sources].include?(s.source.name) |