MSYS2-packages/ruby/3.1.3-rmdir-for-force-ln.patch
2022-12-04 07:18:40 +01:00

12 lines
384 B
Diff

--- ruby-3.1.3/tool/ln_sr.rb.orig 2022-12-04 06:53:40.359961100 +0100
+++ ruby-3.1.3/tool/ln_sr.rb 2022-12-04 06:54:01.343228700 +0100
@@ -57,7 +57,7 @@
end
fu_output_message "ln -s#{options} #{s} #{d}" if verbose
next if noop
- remove_file d, true if force
+ FileUtils.remove_dir(d, true) if force
File.symlink s, d
end
case srcs.size