[DRE-commits] [SCM] gem2deb.git branch, master, updated. 638e4b544a78df36990600af147b91a0fb2b4b7f
Antonio Terceiro
terceiro at softwarelivre.org
Fri Apr 8 08:32:20 UTC 2011
The following commit has been merged in the master branch:
commit 638e4b544a78df36990600af147b91a0fb2b4b7f
Author: Antonio Terceiro <terceiro at softwarelivre.org>
Date: Fri Apr 8 01:31:52 2011 -0700
Fix: don't create native packages by default
diff --git a/lib/gem2deb/dh_make_ruby.rb b/lib/gem2deb/dh_make_ruby.rb
index fcbc48c..5e5a092 100644
--- a/lib/gem2deb/dh_make_ruby.rb
+++ b/lib/gem2deb/dh_make_ruby.rb
@@ -188,7 +188,7 @@ module Gem2Deb
def create_debian_boilerplates
FileUtils.mkdir_p('debian')
unless File.exists?('debian/changelog')
- run "dch --create --empty --package #{source_package_name} --newversion #{gem_version} 'Initial release (Closes: #nnnn)'"
+ run "dch --create --empty --package #{source_package_name} --newversion #{gem_version}-1 'Initial release (Closes: #nnnn)'"
end
templates.each do |template|
FileUtils.mkdir_p(template.directory)
diff --git a/test/unit/dh_make_ruby_test.rb b/test/unit/dh_make_ruby_test.rb
index 5bc9a3b..2f61244 100644
--- a/test/unit/dh_make_ruby_test.rb
+++ b/test/unit/dh_make_ruby_test.rb
@@ -84,7 +84,7 @@ class DhMakeRubyTest < Gem2DebTestCase
assert_equal ['ruby-simplegit'], Dir.chdir(TEST_SIMPLE_GIT) { packages }
end
should 'get the version name correctly' do
- assert_equal 'Version: 0.0.1', Dir.chdir(TEST_SIMPLE_GIT) { `dpkg-parsechangelog | grep Version:`.strip }
+ assert_equal 'Version: 0.0.1-1', Dir.chdir(TEST_SIMPLE_GIT) { `dpkg-parsechangelog | grep Version:`.strip }
end
should 'create debian/control' do
assert_file_exists File.join(TEST_SIMPLE_GIT, 'debian/control')
--
gem2deb.git
More information about the Pkg-ruby-extras-commits
mailing list