Enable TMPDIR again so that anconda-runtime working files go to the working dir.
This commit is contained in:
parent
333255c35c
commit
8e5e261774
@ -1,3 +1,7 @@
|
|||||||
|
* Tue Nov 27 2007 Jesse Keating <jkeating@redhat.com>
|
||||||
|
- Enable TMPDIR again so that anconda-runtime working files
|
||||||
|
go to the working dir.
|
||||||
|
|
||||||
* Thu Nov 22 2007 Jesse Keating <jkeating@redhat.com>
|
* Thu Nov 22 2007 Jesse Keating <jkeating@redhat.com>
|
||||||
- Print a usage if no options are passed
|
- Print a usage if no options are passed
|
||||||
- Correct a man page typo
|
- Correct a man page typo
|
||||||
|
@ -52,13 +52,13 @@ class PungiBase(object):
|
|||||||
filename=logfile)
|
filename=logfile)
|
||||||
|
|
||||||
|
|
||||||
def _doRunCommand(command, logger, rundir='/tmp', output=subprocess.PIPE, error=subprocess.PIPE):
|
def _doRunCommand(command, logger, rundir='/tmp', output=subprocess.PIPE, error=subprocess.PIPE, env=None):
|
||||||
"""Run a command and log the output. Error out if we get something on stderr"""
|
"""Run a command and log the output. Error out if we get something on stderr"""
|
||||||
|
|
||||||
|
|
||||||
logger.info("Running %s" % ' '.join(command))
|
logger.info("Running %s" % ' '.join(command))
|
||||||
|
|
||||||
p1 = subprocess.Popen(command, cwd=rundir, stdout=output, stderr=error, universal_newlines=True)
|
p1 = subprocess.Popen(command, cwd=rundir, stdout=output, stderr=error, universal_newlines=True, env=env)
|
||||||
(out, err) = p1.communicate()
|
(out, err) = p1.communicate()
|
||||||
|
|
||||||
if out:
|
if out:
|
||||||
|
@ -137,7 +137,7 @@ class Pungi(pypungi.PungiBase):
|
|||||||
buildinstall.append(self.topdir)
|
buildinstall.append(self.topdir)
|
||||||
|
|
||||||
# run the command
|
# run the command
|
||||||
pypungi._doRunCommand(buildinstall, self.logger)
|
pypungi._doRunCommand(buildinstall, self.logger, env={"TMPDIR": self.workdir})
|
||||||
|
|
||||||
# write out the tree data for snake
|
# write out the tree data for snake
|
||||||
self.writeinfo('tree: %s' % self.mkrelative(self.topdir))
|
self.writeinfo('tree: %s' % self.mkrelative(self.topdir))
|
||||||
|
Loading…
Reference in New Issue
Block a user