Commit 48942667b8ef1f01daa8562926f4c10e47b737ef

Authored by Antonio Terceiro
1 parent a5f1436c

release: get distribution from latest changelog entry

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
lib/tasks/release.rake
... ... @@ -157,7 +157,8 @@ EOF
157 157 sh "sed -i \"s/VERSION = '[^']*'/VERSION = '#{new_version}'/\" lib/noosfero/version.rb"
158 158 ENV['DEBFULLNAME'] ||= `git config user.name`.strip
159 159 ENV['DEBEMAIL'] ||= `git config user.email`.strip
160   - sh "dch --newversion #{new_version} --distribution #{target} --force-distribution '#{release_message}'"
  160 + distribution = `dpkg-parsechangelog | sed '/Distribution:/!d; s/^.*:\s*//'`.strip
  161 + sh "dch --newversion #{new_version} --distribution #{distribution} --force-distribution '#{release_message}'"
161 162  
162 163 sh 'git diff debian/changelog lib/noosfero/version.rb'
163 164 if confirm("Commit version bump to #{new_version} on #{target} distribution")
... ...