summaryrefslogtreecommitdiff
path: root/bumper
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2016-02-14 12:33:34 +0200
committerLars Wirzenius <liw@liw.fi>2016-02-14 12:35:07 +0200
commitbd62b20bea61e82bce57d15f32bc8a98ece7cca2 (patch)
treee3b4dde3e6afe27e8a9dbf44a8c72b5f271dd6c1 /bumper
parentf36ae7218b9850fa4ed37c32f3879e99782cc1f0 (diff)
downloadbumper-bd62b20bea61e82bce57d15f32bc8a98ece7cca2.tar.gz
Update debian/changelog
Diffstat (limited to 'bumper')
-rwxr-xr-xbumper13
1 files changed, 10 insertions, 3 deletions
diff --git a/bumper b/bumper
index 9da50ec..0fe9bb7 100755
--- a/bumper
+++ b/bumper
@@ -26,11 +26,18 @@ class Bumper(cliapp.Application):
version = args[0]
filename = args[1]
self.write_version_py(filename, version)
- self.commit(filename)
+ self.update_debian_changelog(version)
+ self.commit(version)
self.make_release_tag(version)
- def commit(self, filename):
- cliapp.runcmd(['git', 'commit', '-m', 'Version bump', filename])
+ def update_debian_changelog(self, version):
+ debian_version = '{}-1'.format(version)
+ cliapp.runcmd(['dch', '-v', debian_version, 'New upstream release.'])
+ cliapp.runcmd(['dch', '-r', ''])
+
+ def commit(self, version):
+ msg = 'Prepare to release version {}'.format(version)
+ cliapp.runcmd(['git', 'commit', '-am', msg])
def make_release_tag(self, version):
name = self.get_project_name()