summaryrefslogtreecommitdiff
path: root/morphlib/builder2.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-04-18 18:03:16 +0100
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-04-18 18:29:53 +0100
commit164f7a0e0427fe91a410a4ac5fb6d1bdbe43c76d (patch)
tree23ba028b98445524c038a035200b4dc3c2fd3e7c /morphlib/builder2.py
parentbe906f05d9da48b43f17c2e64e33ed68f944ff5c (diff)
downloadmorph-164f7a0e0427fe91a410a4ac5fb6d1bdbe43c76d.tar.gz
Set cache key in newly created artifact objects
Diffstat (limited to 'morphlib/builder2.py')
-rw-r--r--morphlib/builder2.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/morphlib/builder2.py b/morphlib/builder2.py
index 4bca3e06..a3c8e06a 100644
--- a/morphlib/builder2.py
+++ b/morphlib/builder2.py
@@ -86,7 +86,9 @@ class BuilderBase(object):
def new_artifact(self, artifact_name):
'''Return an Artifact object for something built from our source.'''
- return morphlib.artifact.Artifact(self.artifact.source, artifact_name)
+ a = morphlib.artifact.Artifact(self.artifact.source, artifact_name)
+ a.cache_key = self.artifact.cache_key
+ return a
def runcmd(self, *args, **kwargs):
kwargs['env'] = self.build_env.env