diff --git a/bin/gem2rpm b/bin/gem2rpm index f81c127..444ffe8 100755 --- a/bin/gem2rpm +++ b/bin/gem2rpm @@ -32,8 +32,8 @@ if template_file.nil? && File.exist?('/etc/os-release') File.read('/etc/os-release').each_line(chomp: true) do |line| line.match(%r{^ID=(.*)$}) { |m| template_file = m[1] } end - if template_file.eql? '"opensuse-tumbleweed"' - $stderr.puts 'Using template opensuse on Tumbleweed' + if template_file.match? '^"opensuse' + $stderr.puts 'Using template opensuse on openSUSE variant' template_file = 'opensuse' end end