diff --git a/gem_install.sh b/gem_install.sh index 979d176..4d5f29c 100644 --- a/gem_install.sh +++ b/gem_install.sh @@ -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) diff --git a/gemfile.rb b/gemfile.rb index 8fb4d62..a5710c5 100644 --- a/gemfile.rb +++ b/gemfile.rb @@ -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 diff --git a/ruby-common.changes b/ruby-common.changes index fac4b2a..52f43e2 100644 --- a/ruby-common.changes +++ b/ruby-common.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Nov 17 11:49:44 UTC 2022 - Marcus Rueckert + +- 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