MSYS2-packages/subversion/08-ruby-test-fix.patch
2020-05-30 09:02:52 +03:00

41 lines
1.3 KiB
Diff

Fix ruby tests.
From: David Rothenberger <d.rothenberger@entomo.com>
---
subversion/bindings/swig/ruby/svn/util.rb | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/subversion/bindings/swig/ruby/svn/util.rb b/subversion/bindings/swig/ruby/svn/util.rb
index d409b98..50514ff 100644
--- a/subversion/bindings/swig/ruby/svn/util.rb
+++ b/subversion/bindings/swig/ruby/svn/util.rb
@@ -17,7 +17,7 @@
# under the License.
# ====================================================================
-if /cygwin|mingw|mswin32|bccwin32/.match(RUBY_PLATFORM)
+if /mingw|mswin32|bccwin32/.match(RUBY_PLATFORM)
$LOAD_PATH.each do |load_path|
svn_ext_path = File.join(load_path, "svn", "ext")
if File.exists?(svn_ext_path)
@@ -122,7 +122,7 @@ EOC
end
def reset_message_directory
- if /cygwin|mingw|mswin32|bccwin32/.match(RUBY_PLATFORM)
+ if /mingw|mswin32|bccwin32/.match(RUBY_PLATFORM)
top_directory = File.join(File.dirname(__FILE__), "..", "..")
top_directory = File.expand_path(top_directory)
locale_directory = File.join(top_directory, "share", "locale")
@@ -147,7 +147,7 @@ EOC
end
def windows?
- /cygwin|mingw|mswin32|bccwin32/.match(RUBY_PLATFORM)
+ /mingw|mswin32|bccwin32/.match(RUBY_PLATFORM)
end
end
end