diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2012-06-14 11:20:43 +0100 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2012-06-14 11:32:56 +0000 |
commit | 4dfa4af0e796e1e0a66c4e171f1124d4eee3476b (patch) | |
tree | 1fb51a1c2493681081b155bb38e6ac68fc4e7bca /morphlib/cachekeycomputer.py | |
parent | 501ffc431346e6123458549daa3e96c1f24058db (diff) | |
download | morph-4dfa4af0e796e1e0a66c4e171f1124d4eee3476b.tar.gz |
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.
Diffstat (limited to 'morphlib/cachekeycomputer.py')
-rw-r--r-- | morphlib/cachekeycomputer.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 |