summaryrefslogtreecommitdiff
path: root/morphlib/cachekeycomputer.py
diff options
context:
space:
mode:
authorAdam Coldrick <adam.coldrick@codethink.co.uk>2014-08-08 07:59:02 +0000
committerAdam Coldrick <adam.coldrick@codethink.co.uk>2014-08-14 13:24:50 +0000
commit53b251f4a50eaa3684426a9e7f957fe6c2ca1468 (patch)
tree68c863b49a327d99bcb22f3a4bcda18e3e962b70 /morphlib/cachekeycomputer.py
parent045b86c9de4ad37067a5882e9c14ece43eb0c834 (diff)
downloadmorph-53b251f4a50eaa3684426a9e7f957fe6c2ca1468.tar.gz
morphloader: Get commands when loading morphology
Rather than having a `get_commands` method to obtain missing commands from the build system when they are needed, get the commands when loading a morphology.
Diffstat (limited to 'morphlib/cachekeycomputer.py')
-rw-r--r--morphlib/cachekeycomputer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/cachekeycomputer.py b/morphlib/cachekeycomputer.py
index b124b789..7cbce730 100644
--- a/morphlib/cachekeycomputer.py
+++ b/morphlib/cachekeycomputer.py
@@ -114,7 +114,7 @@ class CacheKeyComputer(object):
for prefix in ('pre-', '', 'post-'):
for cmdtype in ('configure', 'build', 'test', 'install'):
cmd_field = prefix + cmdtype + '-commands'
- keys[cmd_field] = morphology.get_commands(cmd_field)
+ keys[cmd_field] = morphology[cmd_field]
keys['devices'] = morphology.get('devices')
keys['max-jobs'] = morphology.get('max-jobs')
keys['system-integration'] = morphology.get('system-integration',