summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-06-19 10:20:52 +0100
committerLars Wirzenius <liw@liw.fi>2011-06-19 10:20:52 +0100
commitd4090a33827090361fe624a100b229011d01b17e (patch)
tree207a290c915243f6c8bf0233e991cc7dcf47e480
parenta835bc96756933ccb62072620a00b501d8e4bef1 (diff)
downloadunperish-d4090a33827090361fe624a100b229011d01b17e.tar.gz
Break out debian/changelog munging to separate command.
This allows it to be used without having to run a dsc command.
-rwxr-xr-xunperish7
1 files changed, 5 insertions, 2 deletions
diff --git a/unperish b/unperish
index db01d2a..a2ad172 100755
--- a/unperish
+++ b/unperish
@@ -148,10 +148,13 @@ class Unperish(cliapp.Application):
origtar = self.join(self.debian_tarball)
self.runcmd('bzr', 'export', origtar)
- def cmd_dsc(self, args):
- '''Create Debian source package (.dsc) in build area.'''
+ def cmd_dch(self, args):
+ '''Add a debian/changelog entry for new upload target.'''
if self.settings['upload-target']:
self.add_debian_changelog_entry()
+
+ def cmd_dsc(self, args):
+ '''Create Debian source package (.dsc) in build area.'''
self.runcmd('dpkg-source', '-b', self.dirname,
cwd=self.settings['build-area'])