lib/bundler/patch/cli.rb in bundler-patch-0.10.0 vs lib/bundler/patch/cli.rb in bundler-patch-0.10.1
- old
+ new
@@ -98,10 +98,14 @@
Bundler.ui.info "Attempting conservative update for vulnerable gem '#{gp.gem_name}': #{gp.old_version} => #{gp.new_version}"
end
end
if all_gem_patches.empty?
- Bundler.ui.info 'Updating all gems conservatively.'
+ if options[:vulnerable_gems_only]
+ return # nothing to do
+ else
+ Bundler.ui.info 'Updating all gems conservatively.'
+ end
else
Bundler.ui.info "Updating '#{all_gem_patches.map(&:gem_name).join(' ')}' conservatively."
end
conservative_update(all_gem_patches, options)
end