diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2013-06-06 10:17:10 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2013-06-06 10:17:10 +0000 |
commit | c8185c29c3d5d74a1709a440fa6a8bdbf9600cda (patch) | |
tree | ddc663b6a8bcedde7a411cb3ef78043573c5b39a /morphlib/buildcommand.py | |
parent | 367470bdbba737b6253c270de36cd583e4a3421e (diff) | |
download | morph-c8185c29c3d5d74a1709a440fa6a8bdbf9600cda.tar.gz |
Remove intermediate variables
I find it easier to read without them, since there are less variables
to remember.
Diffstat (limited to 'morphlib/buildcommand.py')
-rw-r--r-- | morphlib/buildcommand.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/morphlib/buildcommand.py b/morphlib/buildcommand.py index ac230970..97c5ff86 100644 --- a/morphlib/buildcommand.py +++ b/morphlib/buildcommand.py @@ -333,10 +333,10 @@ class BuildCommand(object): '''Create the staging area for building a single artifact.''' self.app.status(msg='Creating staging area') - staging_dir = os.path.join(self.app.settings['tempdir'], 'staging') - tmp_staging_area_dir = tempfile.mkdtemp(dir=staging_dir) + staging_dir = tempfile.mkdtemp( + dir=os.path.join(self.app.settings['tempdir'], 'staging')) staging_area = morphlib.stagingarea.StagingArea( - self.app, tmp_staging_area_dir, build_env, use_chroot, extra_env, + self.app, staging_dir, build_env, use_chroot, extra_env, extra_path) return staging_area |