summaryrefslogtreecommitdiff
path: root/ybd.py
diff options
context:
space:
mode:
authorAdam Coldrick <adam.coldrick@codethink.co.uk>2015-06-11 08:40:00 +0000
committerAdam Coldrick <adam.coldrick@codethink.co.uk>2015-06-11 09:19:16 +0000
commite0e636b3111df4cbd8320ae4923315f38ae8b630 (patch)
tree845a044c6bd8a62035702b3d11026b863be1ebd2 /ybd.py
parent55d89a774388121585fc7e357a937761c98ed42b (diff)
downloadybd-e0e636b3111df4cbd8320ae4923315f38ae8b630.tar.gz
Pass the Definitions object rather than repeatedly instantiating a new one
Diffstat (limited to 'ybd.py')
-rwxr-xr-xybd.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ybd.py b/ybd.py
index d9f1c88..f2c7fcc 100755
--- a/ybd.py
+++ b/ybd.py
@@ -50,11 +50,11 @@ with app.setup(target, arch):
with app.timer('DEFINITIONS', 'Parsing %s' % app.settings['def-ver']):
defs = Definitions()
with app.timer('CACHE-KEYS', 'Calculating'):
- cache.get_cache(app.settings['target'])
+ cache.get_cache(defs, app.settings['target'])
defs.save_trees()
sandbox.executor = sandboxlib.executor_for_platform()
app.log(target, 'Using %s for sandboxing' % sandbox.executor)
- assemble(app.settings['target'])
- deploy(app.settings['target'])
+ assemble(defs, app.settings['target'])
+ deploy(defs, app.settings['target'])