lib/rubygems/indexer.rb in rubygems-update-3.3.16 vs lib/rubygems/indexer.rb in rubygems-update-3.3.17
- old
+ new
@@ -399,9 +399,11 @@
FileUtils.mv src_name, dst_name, :verbose => verbose,
:force => true
File.utime newest_mtime, newest_mtime, dst_name
end
+ ensure
+ FileUtils.rm_rf @directory
end
##
# Combines specs in +index+ and +source+ then writes out a new copy to
# +dest+. For a latest index, does not ensure the new file is minimal.