1
0
rubygem-gem2rpm/template_loader.patch
Marcus Rueckert 835a5c15e7 Accepting request 1040596 from home:mvidner:branches:devel:languages:ruby
- Edit patches to use File.exist? instead of File.exists? which was
  removed in Ruby 3.2

Maybe I should instead make a PR to https://github.com/openSUSE/gem2rpm/commits/master ? But I'm confused by this package using that repo only up to 2019-02.

OBS-URL: https://build.opensuse.org/request/show/1040596
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/rubygem-gem2rpm?expand=0&rev=45
2022-12-06 10:54:13 +00:00

15 lines
343 B
Diff

diff --git a/bin/gem2rpm b/bin/gem2rpm
old mode 100755
new mode 100644
index 45ed21c..c613c12
--- a/bin/gem2rpm
+++ b/bin/gem2rpm
@@ -73,6 +73,7 @@ opts.separator("")
rest = opts.permute(ARGV)
template = nil
+template_file ||= 'opensuse'
if template_file.nil?
f = open("/etc/os-release", "r") if File.exist?("/etc/os-release")
if f