diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-04-18 17:55:42 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-04-18 17:55:42 +0100 |
commit | b481b54b8432c46df354eedc3532b0420a38fd5a (patch) | |
tree | 02cc62a183cabccf4aa944e0d15b047b383abf16 /dev-libs/sdformat/files/ruby.patch | |
parent | 7288c6e5fa05acddbf692a5187d925ef85662b46 (diff) |
gentoo auto-resync : 18:04:2023 - 17:55:41
Diffstat (limited to 'dev-libs/sdformat/files/ruby.patch')
-rw-r--r-- | dev-libs/sdformat/files/ruby.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/dev-libs/sdformat/files/ruby.patch b/dev-libs/sdformat/files/ruby.patch new file mode 100644 index 000000000000..ceada099cfe3 --- /dev/null +++ b/dev-libs/sdformat/files/ruby.patch @@ -0,0 +1,31 @@ +Index: sdformat-9.10.0/tools/xmlschema.rb +=================================================================== +--- sdformat-9.10.0.orig/tools/xmlschema.rb ++++ sdformat-9.10.0/tools/xmlschema.rb +@@ -265,7 +265,7 @@ opt_parser.parse! + if infile.nil? + puts "Missing option -i." + exit +-elsif !File.exists?(infile) ++elsif !File.exist?(infile) + puts "Input file[#{infile}] does not exist\n" + exit + end +@@ -273,7 +273,7 @@ end + if $path.nil? + puts "Missing option -s." + exit +-elsif !Dir.exists?($path) ++elsif !Dir.exist?($path) + puts "SDF source dir[#{$path}] does not exist\n" + exit + end +@@ -281,7 +281,7 @@ end + if outdir.nil? + puts "Missing output directory, option -o." + exit +-elsif !Dir.exists?(outdir) ++elsif !Dir.exist?(outdir) + Dir.mkdir(outdir) + end + |