aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/installer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/installer.rb')
-rw-r--r--lib/rubygems/installer.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rubygems/installer.rb b/lib/rubygems/installer.rb
index f3172752c2..f8eb2c2145 100644
--- a/lib/rubygems/installer.rb
+++ b/lib/rubygems/installer.rb
@@ -212,6 +212,8 @@ class Gem::Installer
def install
pre_install_checks
+ FileUtils.rm_f File.join gem_home, 'specifications', @spec.spec_name
+
run_pre_install_hooks
# Completely remove any previous gem files