summaryrefslogtreecommitdiff
path: root/lib/bundler/cli/update.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/cli/update.rb')
-rw-r--r--lib/bundler/cli/update.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/bundler/cli/update.rb b/lib/bundler/cli/update.rb
index 8a7541c259..df7524f004 100644
--- a/lib/bundler/cli/update.rb
+++ b/lib/bundler/cli/update.rb
@@ -25,12 +25,7 @@ module Bundler
raise GemfileLockNotFound, "This Bundle hasn't been installed yet. " \
"Run `bundle install` to update and install the bundled gems."
end
- # cycle through the requested gems, to make sure they exist
- names = Bundler.locked_gems.specs.map(&:name)
- gems.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!(gems)
if groups.any?
specs = Bundler.definition.specs_for groups