summaryrefslogtreecommitdiff
path: root/lib/rubygems
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2021-02-25 17:06:01 +0100
committergit <svn-admin@ruby-lang.org>2021-11-30 20:54:05 +0900
commitd7f6cb0f780a5a48b5d4a937f93d876a90697fc0 (patch)
treece66c358afff60abe4ff06f473e92c07f8bffc65 /lib/rubygems
parent2b1f0487142419b2f45c815b3c4c4ba0bda5d13f (diff)
[rubygems/rubygems] Revert "Remove spec file before building"
This reverts commit af604436d8141c34cb2e1e645b9b0d47bfd55a55. The issue that led to introducing it was never reproduced. I tried to repro with this patch and it still works just fine. Since this removal is getting in the middle for some race conditions I'm facing, I'm reverting the patch. https://github.com/rubygems/rubygems/commit/2dd267f0e4
Diffstat (limited to 'lib/rubygems')
-rw-r--r--lib/rubygems/installer.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/rubygems/installer.rb b/lib/rubygems/installer.rb
index 10341a9398..38642ee8ef 100644
--- a/lib/rubygems/installer.rb
+++ b/lib/rubygems/installer.rb
@@ -293,8 +293,6 @@ class Gem::Installer
def install
pre_install_checks
- FileUtils.rm_f File.join gem_home, 'specifications', spec.spec_name
-
run_pre_install_hooks
# Set loaded_from to ensure extension_dir is correct