summaryrefslogtreecommitdiff
path: root/morphlib/builder2.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-11-29 15:38:45 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-11-29 15:38:45 +0000
commitf5f1bb20ed4bc8bf6dbb84d7defc2a4517aee33a (patch)
tree92e995cccca892afb634d59f2f919a65ae7852bd /morphlib/builder2.py
parentbc6a88ae5b139f908cfcc0d33da140ffd9095d49 (diff)
downloadmorph-f5f1bb20ed4bc8bf6dbb84d7defc2a4517aee33a.tar.gz
Use the builder runcmd, to get build environment right
Diffstat (limited to 'morphlib/builder2.py')
-rw-r--r--morphlib/builder2.py10
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()