- 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:
parent
ca23638520
commit
68b70fa120
@ -231,7 +231,7 @@ GILogger.info "RPM name: #{rpmname}"
|
|||||||
pwd = Dir.pwd
|
pwd = Dir.pwd
|
||||||
bindir = File.join(options.rpmbuildroot, Gem.bindir)
|
bindir = File.join(options.rpmbuildroot, Gem.bindir)
|
||||||
GILogger.info "bindir: #{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)
|
br_ua_dir = File.join(options.rpmbuildroot, options.ua_dir)
|
||||||
GILogger.info "Creating upate-alternatives dir: #{br_ua_dir}"
|
GILogger.info "Creating upate-alternatives dir: #{br_ua_dir}"
|
||||||
FileUtils.mkdir_p(br_ua_dir)
|
FileUtils.mkdir_p(br_ua_dir)
|
||||||
|
@ -24,7 +24,7 @@ gemfile_lock = STDIN.read.chomp
|
|||||||
appdir = File.dirname(gemfile_lock)
|
appdir = File.dirname(gemfile_lock)
|
||||||
Dir.chdir(appdir)
|
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"
|
STDERR.puts "Warning: Skipping Gemfile.lock without appinfo.yaml file"
|
||||||
exit 0
|
exit 0
|
||||||
end
|
end
|
||||||
|
@ -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>
|
Mon Jun 13 11:43:30 UTC 2022 - Marcus Rueckert <mrueckert@suse.de>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user