diff treepkg/builder.py @ 462:058856954e2d

Make the compress_all_logs call builder independent and also compress if an error occurs before the builders are executed.
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 31 Aug 2010 15:56:46 +0000
parents 454967511f5c
children
line wrap: on
line diff
--- a/treepkg/builder.py	Mon Aug 30 13:32:31 2010 +0000
+++ b/treepkg/builder.py	Tue Aug 31 15:56:46 2010 +0000
@@ -206,20 +206,14 @@
             args.extend(["--bindmounts", mount])
         for pkg in extra_packages:
             args.extend(["--extrapackages", pkg])
-        try:
-            run.call(cmdexpand("@rootcmd /usr/sbin/pbuilder build"
-                               " --configfile $pbuilderrc @args"
-                               " --debbuildopts -b $dsc",
-                               rootcmd=self.root_cmd, pbuilderrc=self.pbuilderrc,
-                               dsc=dsc_file, args=args),
-                     suppress_output=True,
-                     extra_env=extra_env)
-        except:
-            util.compress_all_logs(logfile)
-            raise
+        run.call(cmdexpand("@rootcmd /usr/sbin/pbuilder build"
+                           " --configfile $pbuilderrc @args"
+                           " --debbuildopts -b $dsc",
+                           rootcmd=self.root_cmd, pbuilderrc=self.pbuilderrc,
+                           dsc=dsc_file, args=args),
+                 suppress_output=True,
+                 extra_env=extra_env)
 
-        util.compress_all_logs(logfile)
- 
         # remove the source package files put into the binary directory
         # by pbuilder
         if binary_dir is not None:
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)