From 5c3361038499361d2180a67711343ed0bd44264a Mon Sep 17 00:00:00 2001 From: Johannes Kastl Date: Sat, 21 Jul 2018 23:13:35 +0200 Subject: [PATCH] use template opensuse on openSUSE Tumbleweed, where /etc/os-release contains ID="opensuse-tumbleweed" (cherry picked from commit 7fa4f56a2a55278e95510d1663c495fa733d7780) --- bin/gem2rpm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/gem2rpm b/bin/gem2rpm index 4ade2e0..2c9b198 100755 --- a/bin/gem2rpm +++ b/bin/gem2rpm @@ -36,6 +36,10 @@ if template_file.nil? f.close f = nil end + if template_file.eql? '"opensuse-tumbleweed"' + $stderr.puts 'Using template opensuse on Tumbleweed' + template_file = 'opensuse' + end end if template_file.nil? template = Gem2Rpm::TEMPLATE