changeset 194:86360f3d5611

Log the output of the dpkg-source call to dpkg_source.txt.
author Bernhard Herzog <bh@intevation.de>
date Thu, 31 Jul 2008 10:17:56 +0000
parents 98de92b816d4
children e3ab8aca2b08
files treepkg/packager.py
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/treepkg/packager.py	Thu Jul 31 10:00:25 2008 +0000
+++ b/treepkg/packager.py	Thu Jul 31 10:17:56 2008 +0000
@@ -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):
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)