[Treepkg-commits] r119 - trunk/treepkg

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Jul 31 12:17:56 CEST 2008


Author: bh
Date: 2008-07-31 12:17:56 +0200 (Thu, 31 Jul 2008)
New Revision: 119

Modified:
   trunk/treepkg/packager.py
Log:
Log the output of the dpkg-source call to dpkg_source.txt.


Modified: trunk/treepkg/packager.py
===================================================================
--- trunk/treepkg/packager.py	2008-07-31 10:00:25 UTC (rev 118)
+++ trunk/treepkg/packager.py	2008-07-31 10:17:56 UTC (rev 119)
@@ -137,12 +137,15 @@
 
     def create_source_package(self, pkgbasedir, origtargz):
         """Creates a new source package from pkgbasedir and origtargz"""
-        logging.info("Creating new source package")
+        util.ensure_directory(self.log_dir)
+        dpkg_source_log = os.path.join(self.log_dir, "dpkg_source.txt")
+        logging.info("Creating new source package; logging to %s",
+                     dpkg_source_log)
         run.call(cmdexpand("dpkg-source -b $directory $tarball",
                            directory=os.path.basename(pkgbasedir),
                            tarball=os.path.basename(origtargz)),
                  cwd=os.path.dirname(pkgbasedir),
-                 suppress_output=True,
+                 logfile=dpkg_source_log,
                  env=self.track.debian_environment())
 
     def move_source_package(self, pkgbasename):



More information about the Treepkg-commits mailing list