openbsd-ports/lang/ruby/patches/patch-lib_fileutils_rb

15 lines
485 B
Plaintext
Raw Normal View History

$OpenBSD: patch-lib_fileutils_rb,v 1.1 2004/05/10 19:46:46 sturm Exp $
--- lib/fileutils.rb.orig 2003-12-13 01:31:22.000000000 +0100
+++ lib/fileutils.rb 2004-05-02 20:16:29.000000000 +0200
@@ -178,7 +178,9 @@ module FileUtils
end
stack.reverse_each do |path|
begin
- Dir.mkdir path, mode
+ if File.exist?(path) == false
+ Dir.mkdir path, mode
+ end
rescue SystemCallError => err
raise unless File.directory?(path)
end