diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-11-29 15:38:45 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-11-29 15:38:45 +0000 |
commit | f5f1bb20ed4bc8bf6dbb84d7defc2a4517aee33a (patch) | |
tree | 92e995cccca892afb634d59f2f919a65ae7852bd /morphlib | |
parent | bc6a88ae5b139f908cfcc0d33da140ffd9095d49 (diff) | |
download | morph-f5f1bb20ed4bc8bf6dbb84d7defc2a4517aee33a.tar.gz |
Use the builder runcmd, to get build environment right
Diffstat (limited to 'morphlib')
-rw-r--r-- | morphlib/builder2.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/morphlib/builder2.py b/morphlib/builder2.py index 88717bb9..28a5e0ba 100644 --- a/morphlib/builder2.py +++ b/morphlib/builder2.py @@ -370,12 +370,10 @@ class ChunkBuilder(BuilderBase): # buffers, but flush handles both logfile.write('# # %s\n' % cmd) logfile.flush() - - self.staging_area.runcmd(['sh', '-c', cmd], - cwd=relative_builddir, - stdout=logfile, - stderr=subprocess.STDOUT) - + self.runcmd(['sh', '-c', cmd], + cwd=relative_builddir, + stdout=logfile, + stderr=subprocess.STDOUT) logfile.flush() except cliapp.AppException, e: logfile.flush() |