diff options
-rwxr-xr-x | unperish | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -233,7 +233,7 @@ class Unperish(cliapp.Application): target, arch, path = self.parse_basetgz(spec) if target: - self.add_debian_changelog_entry(target) + self.add_debian_changelog_entry(target, arch) self.run_subcommand('dsc', force=True) if not self.already_exists(self.join(self.changes(arch))): argv = ['sudo', @@ -349,13 +349,17 @@ class Unperish(cliapp.Application): else: os.remove(pathname) - def add_debian_changelog_entry(self, target): + def add_debian_changelog_entry(self, target, arch): + if arch: + msg = 'Build for %s on %s.' % (target, arch) + else: + msg = 'Build for %s.' % target self.runcmd(['dch', '--force-distribution', '--local', '~' + target, '--distribution', target, '--preserve', - 'Build for %s.' % target], + msg], cwd=self.join(self.dirname)) def join(self, *components): |