summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/rubygems_ext.rb2
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