comparison treepkg/packager.py @ 2:e6a9f4037f68

readconfig.py is smarter now about conversions and supports shlex
author Bernhard Herzog <bh@intevation.de>
date Thu, 08 Mar 2007 19:55:44 +0100
parents f78a02e79c84
children fee641fec94e
comparison
equal deleted inserted replaced
1:02d5702314a3 2:e6a9f4037f68
145 145
146 def package(self): 146 def package(self):
147 self.status.set("creating_binary_package") 147 self.status.set("creating_binary_package")
148 util.ensure_directory(self.binary_dir) 148 util.ensure_directory(self.binary_dir)
149 logging.info("Building binary package; loging to %r", self.logfile) 149 logging.info("Building binary package; loging to %r", self.logfile)
150 cmd = [] 150 cmd = ["/usr/sbin/pbuilder", "build", "--logfile", self.logfile,
151 if self.plant.root_cmd: 151 "--buildresult", self.binary_dir, self.dsc_file]
152 cmd.append(self.plant.root_cmd) 152 run.call(self.plant.root_cmd + cmd, suppress_output=True)
153 run.call(cmd + ["/usr/sbin/pbuilder", "build",
154 "--logfile", self.logfile,
155 "--buildresult", self.binary_dir,
156 self.dsc_file],
157 suppress_output=True)
158 self.status.set("binary_package_created") 153 self.status.set("binary_package_created")
159 154
160 155
161 class RevisionPackager(object): 156 class RevisionPackager(object):
162 157
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)