From 9e35ea90a1f2c41c3808633e76930f86da6336e5 Mon Sep 17 00:00:00 2001 From: Adam Coldrick Date: Fri, 8 Aug 2014 07:59:02 +0000 Subject: 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. --- 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 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', -- cgit v1.2.1