diff options
-rw-r--r-- | morphlib/builder.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/morphlib/builder.py b/morphlib/builder.py index 0bb21434..3f1fd0f8 100644 --- a/morphlib/builder.py +++ b/morphlib/builder.py @@ -338,6 +338,7 @@ class ChunkBuilder(BuilderBase): ('install', False), ('post-install', False), ] + for step, in_parallel in steps: with self.build_watch(step): key = '%s-commands' % step @@ -359,6 +360,10 @@ class ChunkBuilder(BuilderBase): try: with open(logfilepath, 'a') as log: log.write('# # %s\n' % cmd) + env = extra_env + env.update(self.staging_area.env) + for key, value in env.iteritems(): + log.write('# # %s=%s\n' % (key, value)) # flushing is needed because writes from python and # writes from being the output in Popen have different |