aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/uninstaller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/uninstaller.rb')
-rw-r--r--lib/rubygems/uninstaller.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/rubygems/uninstaller.rb b/lib/rubygems/uninstaller.rb
index e2b5e5372b..c5ae47b7eb 100644
--- a/lib/rubygems/uninstaller.rb
+++ b/lib/rubygems/uninstaller.rb
@@ -176,9 +176,10 @@ class Gem::Uninstaller
end
def path_ok?(spec)
- match_path = File.join @gem_home, 'gems', spec.full_name
+ full_path = File.join @gem_home, 'gems', spec.full_name
+ original_path = File.join @gem_home, 'gems', spec.original_name
- match_path == spec.full_gem_path
+ full_path == spec.full_gem_path || original_path == spec.full_gem_path
end
def dependencies_ok?(spec)