summaryrefslogtreecommitdiff
path: root/lib/bundler/cli/lock.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/cli/lock.rb')
-rw-r--r--lib/bundler/cli/lock.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/bundler/cli/lock.rb b/lib/bundler/cli/lock.rb
index 8b14f2c7d3..223db9419f 100644
--- a/lib/bundler/cli/lock.rb
+++ b/lib/bundler/cli/lock.rb
@@ -23,12 +23,7 @@ module Bundler
update = options[:update]
if update.is_a?(Array) # unlocking specific gems
- # cycle through the requested gems, to make sure they exist
- names = Bundler.locked_gems.specs.map(&:name)
- update.each do |g|
- next if names.include?(g)
- raise GemNotFound, Bundler::CLI::Common.gem_not_found_message(g, names)
- end
+ Bundler::CLI::Common.ensure_all_gems_in_lockfile!(update)
update = { :gems => update, :lock_shared_dependencies => options[:conservative] }
end
definition = Bundler.definition(update)