diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2012-04-24 12:59:33 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2012-04-24 12:59:33 +0000 |
commit | b5375ddbcf746704a82ff5a74f399e2ea6b7815f (patch) | |
tree | 99546e3c47699a20eab6bb547048a715e43e8f9f | |
parent | 7cfe2f8c5a21c03c15dd43c8b7e92229fd636054 (diff) | |
download | morph-b5375ddbcf746704a82ff5a74f399e2ea6b7815f.tar.gz |
builder: cache metadata in the right path
Build times belong in cachekey.meta. This is part of the source's
metadata, rather than the artifact's. Otherwise it would be in
cachekey.artifact.meta
-rw-r--r-- | morphlib/builder2.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/morphlib/builder2.py b/morphlib/builder2.py index 59a57c38..161e01cc 100644 --- a/morphlib/builder2.py +++ b/morphlib/builder2.py @@ -48,8 +48,9 @@ class BuilderBase(object): } logging.debug('Writing metadata to the cache') - meta_artifact = self.new_artifact('meta') - with self.artifact_cache.put(meta_artifact) as f: + with self.artifact_cache.put_source_metadata( + self.artifact.source, self.artifact.cache_key, + 'meta') as f: json.dump(meta, f, indent=4, sort_keys=True) f.write('\n') |