From ae969415ce067d8c06795d51f8247d26cb23808b Mon Sep 17 00:00:00 2001 From: Jannis Pohlmann Date: Wed, 5 Sep 2012 17:13:30 +0000 Subject: Compute cache keys using tree SHA1s instead of commit SHA1s This avoids rebuilding things when commits are made that do not change the actual source code or the morphologies. --- 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 ca6776b7..a11334e3 100644 --- a/morphlib/cachekeycomputer.py +++ b/morphlib/cachekeycomputer.py @@ -87,7 +87,7 @@ class CacheKeyComputer(object): kind = artifact.source.morphology['kind'] if kind == 'chunk': - keys['ref'] = artifact.source.sha1 + keys['tree'] = artifact.source.tree elif kind in ('system', 'stratum'): morphology = artifact.source.morphology le_dict = dict((k, morphology[k]) for k in morphology.keys()) -- cgit v1.2.1