[Treepkg-commits] r294 - branches/scratchbox/treepkg
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Apr 21 16:29:11 CEST 2010
Author: bricks
Date: 2010-04-21 16:29:00 +0200 (Wed, 21 Apr 2010)
New Revision: 294
Modified:
branches/scratchbox/treepkg/sbuilder.py
Log:
compress always the build log file
Modified: branches/scratchbox/treepkg/sbuilder.py
===================================================================
--- branches/scratchbox/treepkg/sbuilder.py 2010-04-19 10:17:46 UTC (rev 293)
+++ branches/scratchbox/treepkg/sbuilder.py 2010-04-21 14:29:00 UTC (rev 294)
@@ -131,8 +131,7 @@
try:
run.call(cmd, suppress_output=True, extra_env=extra_env)
- if logfile is not None and os.path.exists(logfile):
- run.call(cmdexpand("gzip -9 $logfile", logfile=logfile))
+
# remove the source package files put into the binary directory
# by pbuilder (BR: not sure if this is necessary for sbdmock)
if binary_dir is not None:
@@ -140,6 +139,9 @@
if os.path.splitext(filename)[1] not in (".deb", ".changes"):
os.remove(os.path.join(binary_dir, filename))
finally:
+ # compress logfile
+ if logfile is not None and os.path.exists(logfile):
+ run.call(cmdexpand("gzip -9 $logfile", logfile=logfile))
# remove all mounted directories
self.umount_all()
More information about the Treepkg-commits
mailing list