summaryrefslogtreecommitdiff
path: root/morphlib/builder.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2015-06-02 13:43:41 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2015-06-12 08:56:43 +0000
commitd95bd9ec7cdf78ee74c69ebe9df07d418bb1e5db (patch)
tree9f6004ff3732c52f14d9f4b48f1aead8edc9a094 /morphlib/builder.py
parentacdc5ceb0f8d7f1a2b21ed121b4139c67b52fb30 (diff)
downloadmorph-d95bd9ec7cdf78ee74c69ebe9df07d418bb1e5db.tar.gz
cachekey/builder: Use and cache strip commands
Change-Id: I19a6c31979aa36ff3c03f41e16e2d25ef407533b
Diffstat (limited to 'morphlib/builder.py')
-rw-r--r--morphlib/builder.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/morphlib/builder.py b/morphlib/builder.py
index 8caaaf39..6e706b82 100644
--- a/morphlib/builder.py
+++ b/morphlib/builder.py
@@ -336,15 +336,20 @@ class ChunkBuilder(BuilderBase):
('pre-install', False),
('install', False),
('post-install', False),
+ ('pre-strip', False),
+ ('strip', False),
+ ('post-strip', False),
]
for step, in_parallel in steps:
with self.build_watch(step):
key = '%s-commands' % step
- cmds = m[key]
- if cmds:
- with open(logfilepath, 'a') as log:
- self.app.status(msg='Running %(key)s', key=key)
- log.write('# %s\n' % step)
+ cmds = m.get(key)
+ if not cmds:
+ continue
+
+ with open(logfilepath, 'a') as log:
+ self.app.status(msg='Running %(key)s', key=key)
+ log.write('# %s\n' % step)
for cmd in cmds:
if in_parallel: