summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-05-29 14:48:27 +0100
committerBaserock Gerrit <gerrit@baserock.org>2015-05-29 14:50:11 +0000
commit7929082eac2d9dc90b276afae6c201f47177c48b (patch)
treea3ac043a8ac267e19a97afcf597fcd7fda03648c
parent501181a7d920008838cc60106a5de8c5c7cf1eb7 (diff)
downloadmorph-7929082eac2d9dc90b276afae6c201f47177c48b.tar.gz
Ignore the configuration extensions when generating the cache-key
System artifacts won't change because of changes in the configuration extensions. These extensions run at deployment time, therefore, they are ignored for generating the cache-key. Change-Id: I64f28605630bda4c27748197aef84809b4b1f86b
-rw-r--r--morphlib/cachekeycomputer.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/morphlib/cachekeycomputer.py b/morphlib/cachekeycomputer.py
index 33eef082..fd40dc38 100644
--- a/morphlib/cachekeycomputer.py
+++ b/morphlib/cachekeycomputer.py
@@ -115,6 +115,9 @@ class CacheKeyComputer(object):
# Disregard all fields of a morphology that aren't important
ignored_fields = (
'description', # purely cosmetic, doesn't change builds
+ # Configuration extensions don't run at build time, therefore
+ # they don't have to be included in the cache key.
+ 'configuration-extensions',
# The following are used to determine dependencies,
# so are already handled by the 'kids' field.
'strata', 'build-depends', 'chunks',