From 8184edabc5999ecb43e49a4ef03f73e4270e5347 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Wed, 10 Sep 2014 10:34:06 +0000 Subject: Move metadata_version value to cachekeycomputer metadata_version is for when the format of the /baserock metadata files changes. This means it would make sense for it to either live with the code for generating the metadata, or the cache key code so it lives with the rest of the compatibility values. Since the code for generating the metadata isn't in a nice module anywhere, I've put it in the cachekeycomputer module. --- morphlib/cachekeycomputer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'morphlib/cachekeycomputer.py') diff --git a/morphlib/cachekeycomputer.py b/morphlib/cachekeycomputer.py index cf44f76e..a9f5aabe 100644 --- a/morphlib/cachekeycomputer.py +++ b/morphlib/cachekeycomputer.py @@ -85,7 +85,7 @@ class CacheKeyComputer(object): 'env': self._filterenv(self._build_env.env), 'kids': [{'artifact': a.name, 'cache-key': self.compute_key(a)} for a in artifact.dependencies], - 'metadata-version': artifact.metadata_version + 'metadata-version': 1 # bump if /baserock metadata format changes } kind = artifact.source.morphology['kind'] -- cgit v1.2.1