From 89ca4214d6598071b2020e8253a1f80996aa3c6c Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 23 Aug 2011 18:21:57 +0100 Subject: Make a different log message when building for different targets. This stops lintian from complaining about identical messages. --- unperish | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/unperish b/unperish index bdd7583..f884422 100755 --- a/unperish +++ b/unperish @@ -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): -- cgit v1.2.1