From 4dfa4af0e796e1e0a66c4e171f1124d4eee3476b Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Thu, 14 Jun 2012 11:20:43 +0100 Subject: CacheKeyComputer: add stratum-format-version Since strata aren't tarballs any more, it's simpler to make tarball strata cache misses than have the system build code behave differently for tarballs and json chunk lists. --- morphlib/cachekeycomputer.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'morphlib/cachekeycomputer.py') diff --git a/morphlib/cachekeycomputer.py b/morphlib/cachekeycomputer.py index e8cbed2c..720ec4c2 100644 --- a/morphlib/cachekeycomputer.py +++ b/morphlib/cachekeycomputer.py @@ -94,6 +94,8 @@ class CacheKeyComputer(object): checksum = hashlib.sha1() self._hash_thing(checksum, le_dict) keys['morphology-sha1'] = checksum.hexdigest() + if kind == 'stratum': + keys['stratum-format-version'] = 1 return keys -- cgit v1.2.1