diff options
author | David RodrÃguez <[email protected]> | 2025-01-31 16:20:54 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2025-02-06 15:58:00 +0900 |
commit | ac093f4350ae8f41ef18ac64829ea9dbc272063d (patch) | |
tree | b752562f59663c3c75bea06ed108e594cddcc24e /lib | |
parent | 78ef59acf7f443b7f87039d5927005a2f8f0bb36 (diff) |
[rubygems/rubygems] Auto-heal empty installation directory
https://github.com/rubygems/rubygems/commit/9720a9b980
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/rubygems_ext.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/rubygems_ext.rb b/lib/bundler/rubygems_ext.rb index 33463618e5..50c650d378 100644 --- a/lib/bundler/rubygems_ext.rb +++ b/lib/bundler/rubygems_ext.rb @@ -259,7 +259,7 @@ module Gem end def installation_missing? - !default_gem? && !File.directory?(full_gem_path) + !default_gem? && (!Dir.exist?(full_gem_path) || Dir.empty?(full_gem_path)) end unless VALIDATES_FOR_RESOLUTION |