From e97bcc8c98377e70e99ace9975e650092311983b Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Mon, 20 Jan 2014 14:31:59 +0000 Subject: cache-key: Don't reduntantly hash products field For chunks the products field doesn't need to be hashed, since the split-rules field is used instead, and includes the default rule set, and for strata and systems it is handled by hashing the dependencies. --- morphlib/cachekeycomputer.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/morphlib/cachekeycomputer.py b/morphlib/cachekeycomputer.py index 2312abc3..1a20faf1 100644 --- a/morphlib/cachekeycomputer.py +++ b/morphlib/cachekeycomputer.py @@ -97,8 +97,12 @@ class CacheKeyComputer(object): le_dict = dict((k, morphology[k]) for k in morphology.keys()) # Disregard all fields of a morphology that aren't important - ignored_fields = ('strata', 'build-depends', 'description', - 'chunks') + ignored_fields = ( + 'description', # purely cosmetic, doesn't change builds + # The following are used to determine dependencies, + # so are already handled by the 'kids' field. + 'strata', 'build-depends', 'chunks', + 'products') for ignored_field in ignored_fields: if ignored_field in le_dict: del le_dict[ignored_field] -- cgit v1.2.1