Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.3
rubygem-gem2rpm
gem2rpm-change-default-template.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gem2rpm-change-default-template.diff of Package rubygem-gem2rpm
Index: gem2rpm-0.8.1/bin/gem2rpm =================================================================== --- gem2rpm-0.8.1.orig/bin/gem2rpm +++ gem2rpm-0.8.1/bin/gem2rpm @@ -69,6 +69,16 @@ rest = opts.permute(ARGV) template = nil if template_file.nil? + f = open("/etc/os-release", "r") if File.exists?("/etc/os-release") + if f + f.read.split('\n').each do |line| + line.match(%r{^ID=(.*)$}) { |m| template_file=m[1] } + end + f.close + f = nil + end +end +if template_file.nil? template = Gem2Rpm::TEMPLATE else begin Index: gem2rpm-0.8.1/lib/gem2rpm/distro.rb =================================================================== --- gem2rpm-0.8.1.orig/lib/gem2rpm/distro.rb +++ gem2rpm-0.8.1/lib/gem2rpm/distro.rb @@ -20,7 +20,7 @@ module Gem2Rpm else # no version or more versions (=> don't know what to do) FEDORA end - elsif !release_files.grep(/SuSe/).empty? + elsif !release_files.grep(/SuSE/).empty? OPENSUSE else DEFAULT
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor