Skip to content

Commit

Permalink
Use the opensuse template on all openSUSE variants
Browse files Browse the repository at this point in the history
At the moment you have to manually specify the template file name on Leap, as
gem2rpm tries to use the opensuse-leap template on Leap, which does not
exist. Therefore we fallback to the opensuse template instead.
  • Loading branch information
dcermak committed Aug 6, 2021
1 parent eafda91 commit 2f34876
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/gem2rpm
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ if template_file.nil?
f.close
f = nil
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
Expand Down

0 comments on commit 2f34876

Please sign in to comment.