[DRE-commits] [SCM] gem2deb.git branch, master, updated. debian/0.2.3-4-gfb547d8
Antonio Terceiro
terceiro at softwarelivre.org
Wed May 11 19:19:47 UTC 2011
The following commit has been merged in the master branch:
commit ca2f19a91046ddb0464c9caea311fc57fe0da6f4
Author: Antonio Terceiro <terceiro at softwarelivre.org>
Date: Wed May 11 12:09:56 2011 -0700
Extract substvars generation into its own method
diff --git a/lib/gem2deb/dh_ruby.rb b/lib/gem2deb/dh_ruby.rb
index 4aa6381..c151f4c 100644
--- a/lib/gem2deb/dh_ruby.rb
+++ b/lib/gem2deb/dh_ruby.rb
@@ -125,9 +125,7 @@ module Gem2Deb
run_tests(supported_versions)
- File::open("debian/#{package}.substvars", "a") do |fd|
- fd.puts "ruby:Versions=#{supported_versions.join(' ')}"
- end
+ install_substvars(package, supported_versions)
update_shebangs(package)
@@ -266,6 +264,12 @@ module Gem2Deb
end
end
+ def install_substvars(package, supported_versions)
+ File.open("debian/#{package}.substvars", "a") do |fd|
+ fd.puts "ruby:Versions=#{supported_versions.join(' ')}"
+ end
+ end
+
def skip_checks?
if @skip_checks.nil?
if ENV['DEB_BUILD_OPTIONS'] && ENV['DEB_BUILD_OPTIONS'].split(' ').include?('nocheck')
--
gem2deb.git
More information about the Pkg-ruby-extras-commits
mailing list