diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-08-23 18:21:57 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-08-23 18:21:57 +0100 |
commit | 89ca4214d6598071b2020e8253a1f80996aa3c6c (patch) | |
tree | daa039b6dd1471acc8d4bacc2b3024e38c235249 | |
parent | d09a5b0c1b51db9823f580d7ec4e0088529229be (diff) | |
download | unperish-89ca4214d6598071b2020e8253a1f80996aa3c6c.tar.gz |
Make a different log message when building for different targets.
This stops lintian from complaining about identical messages.
-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): |