[DRE-commits] [SCM] gem2deb.git branch, master, updated. 69527a952f75392364d8d9c04cb367b55f061f7a

Laurent Arnoud laurent at spkdev.net
Mon Mar 14 10:37:10 UTC 2011


The following commit has been merged in the master branch:
commit 6f3adc3a83587fff90684ba35ec156540fffae08
Author: Laurent Arnoud <laurent at spkdev.net>
Date:   Sun Mar 13 00:13:15 2011 +0100

    Don't create debian/changelog if already exist
    
    Signed-off-by: Laurent Arnoud <laurent at spkdev.net>

diff --git a/lib/gem2deb/dh_make_ruby.rb b/lib/gem2deb/dh_make_ruby.rb
index 4b3b03f..7161d48 100644
--- a/lib/gem2deb/dh_make_ruby.rb
+++ b/lib/gem2deb/dh_make_ruby.rb
@@ -159,7 +159,9 @@ module Gem2Deb
 
     def create_debian_boilerplates
       FileUtils.mkdir_p('debian')
-      run "dch --create --empty --fromdirname 'Initial release (Closes: #nnnn)'"
+      unless File.exists?('debian/changelog')
+        run "dch --create --empty --fromdirname 'Initial release (Closes: #nnnn)'"
+      end
       templates.each do |template|
         FileUtils.mkdir_p(template.directory)
         File.open(template.filename, 'w') do |f|

-- 
gem2deb.git



More information about the Pkg-ruby-extras-commits mailing list