comparison treepkg/packager.py @ 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 94fb3f3ab58b
children b1929c11a020
comparison
equal deleted inserted replaced
193:98de92b816d4 194:86360f3d5611
135 env=self.track.debian_environment()) 135 env=self.track.debian_environment())
136 136
137 137
138 def create_source_package(self, pkgbasedir, origtargz): 138 def create_source_package(self, pkgbasedir, origtargz):
139 """Creates a new source package from pkgbasedir and origtargz""" 139 """Creates a new source package from pkgbasedir and origtargz"""
140 logging.info("Creating new source package") 140 util.ensure_directory(self.log_dir)
141 dpkg_source_log = os.path.join(self.log_dir, "dpkg_source.txt")
142 logging.info("Creating new source package; logging to %s",
143 dpkg_source_log)
141 run.call(cmdexpand("dpkg-source -b $directory $tarball", 144 run.call(cmdexpand("dpkg-source -b $directory $tarball",
142 directory=os.path.basename(pkgbasedir), 145 directory=os.path.basename(pkgbasedir),
143 tarball=os.path.basename(origtargz)), 146 tarball=os.path.basename(origtargz)),
144 cwd=os.path.dirname(pkgbasedir), 147 cwd=os.path.dirname(pkgbasedir),
145 suppress_output=True, 148 logfile=dpkg_source_log,
146 env=self.track.debian_environment()) 149 env=self.track.debian_environment())
147 150
148 def move_source_package(self, pkgbasename): 151 def move_source_package(self, pkgbasename):
149 """Moves the new source package from the work_dir to the src_dir""" 152 """Moves the new source package from the work_dir to the src_dir"""
150 logging.info("Moving source package to %r", self.src_dir) 153 logging.info("Moving source package to %r", self.src_dir)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)