- replace File.exists? with File.exist? as the File.exists?

is no longer supported in 3.2

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=117
This commit is contained in:
Marcus Rückert 2022-11-17 12:00:45 +00:00 committed by Git OBS Bridge
parent ca23638520
commit 68b70fa120
3 changed files with 8 additions and 2 deletions

View File

@ -231,7 +231,7 @@ GILogger.info "RPM name: #{rpmname}"
pwd = Dir.pwd
bindir = File.join(options.rpmbuildroot, Gem.bindir)
GILogger.info "bindir: #{bindir}"
if options.symlinkbinaries && File.exists?(bindir)
if options.symlinkbinaries && File.exist?(bindir)
br_ua_dir = File.join(options.rpmbuildroot, options.ua_dir)
GILogger.info "Creating upate-alternatives dir: #{br_ua_dir}"
FileUtils.mkdir_p(br_ua_dir)

View File

@ -24,7 +24,7 @@ gemfile_lock = STDIN.read.chomp
appdir = File.dirname(gemfile_lock)
Dir.chdir(appdir)
unless File.exists? app_info_file then
unless File.exist? app_info_file then
STDERR.puts "Warning: Skipping Gemfile.lock without appinfo.yaml file"
exit 0
end

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Nov 17 11:49:44 UTC 2022 - Marcus Rueckert <mrueckert@suse.de>
- replace `File.exists?` with `File.exist?` as the `File.exists?`
is no longer supported in 3.2
-------------------------------------------------------------------
Mon Jun 13 11:43:30 UTC 2022 - Marcus Rueckert <mrueckert@suse.de>