File: fix-ftbfs-with-ruby-3.2.patch

package info (click to toggle)
genomethreader 1.7.3%2Bdfsg-11
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 46,592 kB
  • sloc: ansic: 90,168; ruby: 1,769; makefile: 573; sh: 112; perl: 105
file content (16 lines) | stat: -rw-r--r-- 403 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Fix FTBFS with Ruby 3.2
 Replace File.exists? with File.exist?
Author: Lucas Kanashiro <kanashiro@ubuntu.com>
Last-Updated: 2024-20-23

--- a/testsuite/stest.rb
+++ b/testsuite/stest.rb
@@ -54,7 +54,7 @@
   def setup_dir
     begin
       ds = "#{@@prefix}/test#{@id}"
-      if File.exists?(ds)
+      if File.exist?(ds)
         FileUtils.rm_r(ds)
       end
       FileUtils.mkdir_p(ds)