diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-12-27 21:41:29 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-12-27 21:41:29 +0000 |
commit | e4b1505deebd48979613a8c89ddb114ba3ca54fa (patch) | |
tree | f96b72bff0ee48bef7491d4478cc0f18d9bc1a61 | |
parent | ed9eaa527bc6167601e76a088ceb69b1a013b900 (diff) | |
download | unperish-e4b1505deebd48979613a8c89ddb114ba3ca54fa.tar.gz |
save a pbuilder log for each run
For whatever reason, pbuilder likes to truncate the log file as it
starts, so we can't collect them all into one file, which is what I
thought we were doing.
-rwxr-xr-x | unperish | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -263,13 +263,16 @@ class Unperish(cliapp.Application): self.add_debian_changelog_entry(target) for arch, path in targets[target]: self.run_subcommand('dsc', force=True) - if not self.already_exists(self.join(self.changes(arch))): + changes = self.join(self.changes(arch)) + if not self.already_exists(changes): + prefix, ext = os.path.splitext(changes) + logfile = prefix + '.pbuilder.log' argv = ['sudo', 'pbuilder', '--build', '--basetgz', path, '--buildresult', self.settings['build-area'], - '--logfile', self.join('pbuilder.log')] + '--logfile', logfile] if self.include_source(): argv.extend(['--debbuildopts', '-sa']) if self.settings['binary-arch']: |