File: 0003-Rename-File.exists-to-.exist.patch

package info (click to toggle)
ruby-librarian 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 632 kB
  • sloc: ruby: 6,109; makefile: 11
file content (22 lines) | stat: -rw-r--r-- 785 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: =?utf-8?q?C=C3=A9dric_Boutillier?= <boutil@debian.org>
Date: Wed, 29 Nov 2023 23:46:32 +0100
Subject: Rename File.exists? to .exist

to support ruby-fakefs 2.x and ruby 3.2
---
 lib/librarian/dsl.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librarian/dsl.rb b/lib/librarian/dsl.rb
index 76b68be..2e8aaa1 100644
--- a/lib/librarian/dsl.rb
+++ b/lib/librarian/dsl.rb
@@ -88,7 +88,7 @@ module Librarian
 
         specfile ||= block if block_given?
 
-        if specfile.kind_of?(Pathname) and !File.exists?(specfile)
+        if specfile.kind_of?(Pathname) and !File.exist?(specfile)
           debug { "Specfile #{specfile} not found, using defaults" } unless specfile.nil?
           receiver(target).run(specfile, &default_specfile)
         else