From 6953c87c92d95bc6a895b931b0f54005b590a2ec Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Mon, 2 Jul 2012 15:41:34 +0100 Subject: 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. --- 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 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 -- cgit v1.2.1