зеркало из https://github.com/github/ruby.git
Respect --dest-dir when removing old default gems
Before this, tool/rbinstall would try to remove a gem file that
it may not have access too.
Fixes issue introduced in f550da512c
.
This commit is contained in:
Родитель
a3d1cacda6
Коммит
51361272f9
|
@ -827,7 +827,7 @@ def install_default_gem(dir, srcdir)
|
|||
spec
|
||||
}
|
||||
gems.compact.sort_by(&:name).each do |gemspec|
|
||||
old_gemspecs = Dir[File.join(default_spec_dir, "#{gemspec.name}-*.gemspec")]
|
||||
old_gemspecs = Dir[File.join(with_destdir(default_spec_dir), "#{gemspec.name}-*.gemspec")]
|
||||
if old_gemspecs.size > 0
|
||||
old_gemspecs.each {|spec| FileUtils.rm spec }
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче