# HG changeset patch # User Bernhard Herzog # Date 1217499476 0 # Node ID 86360f3d5611fbee8a342905eacd22edc404ea74 # Parent 98de92b816d4c555d2e57e4d99055bdc3e3142d9 Log the output of the dpkg-source call to dpkg_source.txt. diff -r 98de92b816d4 -r 86360f3d5611 treepkg/packager.py --- 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):