summaryrefslogtreecommitdiff
path: root/morphlib/cachekeycomputer.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-07-02 15:41:34 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2012-07-02 15:47:28 +0100
commit6953c87c92d95bc6a895b931b0f54005b590a2ec (patch)
treec4afb83e9dbe081d0a2d3b98b91343a81790e26e /morphlib/cachekeycomputer.py
parent1fa75fc9e4d0dc54fb6b250137f4ff39f0deb8fa (diff)
downloadmorph-6953c87c92d95bc6a895b931b0f54005b590a2ec.tar.gz
CacheKeyComputer: increment compat-version
This will prevent systems that don't have the right mount options being cache hits. Having fstab be in some System configuration morphology, which is also included in the cache key would prevent this being needed if the fstab format changes again.
Diffstat (limited to 'morphlib/cachekeycomputer.py')
-rw-r--r--morphlib/cachekeycomputer.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/morphlib/cachekeycomputer.py b/morphlib/cachekeycomputer.py
index 720ec4c2..c2e7490a 100644
--- a/morphlib/cachekeycomputer.py
+++ b/morphlib/cachekeycomputer.py
@@ -96,6 +96,8 @@ class CacheKeyComputer(object):
keys['morphology-sha1'] = checksum.hexdigest()
if kind == 'stratum':
keys['stratum-format-version'] = 1
+ elif kind == 'system':
+ keys['system-compatibility-version'] = 1
return keys