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.

(cherry picked from commit 2f34876)
  • Loading branch information
dcermak committed Aug 12, 2021
1 parent 5c33610 commit c9eb1ca
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 @@ -36,8 +36,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 c9eb1ca

Please sign in to comment.