summaryrefslogtreecommitdiff
path: root/morphlib/buildcommand.py
diff options
context:
space:
mode:
authorTiago Gomes <tiago.gomes@codethink.co.uk>2013-06-05 13:31:13 +0000
committerTiago Gomes <tiago.gomes@codethink.co.uk>2013-06-05 16:59:29 +0000
commitb4a633a5229b6c3380cde0cc67da037ea8091008 (patch)
treec5f61a51eedbf5600ac9bcaa0249ce422ead7e6e /morphlib/buildcommand.py
parent86cbc1bc8ef84dc9496d7723a15dec9b43eacb73 (diff)
downloadmorph-b4a633a5229b6c3380cde0cc67da037ea8091008.tar.gz
Change the structure of the temporary directory used by morph
Now, inside the temporary directory we will have the following subdirectories: chunks, staging, failed and deployments. The failed directory will contain the staging areas of failed builds.
Diffstat (limited to 'morphlib/buildcommand.py')
-rw-r--r--morphlib/buildcommand.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/morphlib/buildcommand.py b/morphlib/buildcommand.py
index 5be216e1..ac230970 100644
--- a/morphlib/buildcommand.py
+++ b/morphlib/buildcommand.py
@@ -333,9 +333,10 @@ class BuildCommand(object):
'''Create the staging area for building a single artifact.'''
self.app.status(msg='Creating staging area')
- staging_dir = tempfile.mkdtemp(dir=self.app.settings['tempdir'])
+ staging_dir = os.path.join(self.app.settings['tempdir'], 'staging')
+ tmp_staging_area_dir = tempfile.mkdtemp(dir=staging_dir)
staging_area = morphlib.stagingarea.StagingArea(
- self.app, staging_dir, build_env, use_chroot, extra_env,
+ self.app, tmp_staging_area_dir, build_env, use_chroot, extra_env,
extra_path)
return staging_area