summaryrefslogtreecommitdiff
path: root/ybd.py
diff options
context:
space:
mode:
authorPaul Sherwood <paul.sherwood@codethink.co.uk>2015-03-30 10:45:39 +0000
committerPaul Sherwood <paul.sherwood@codethink.co.uk>2015-03-30 10:45:39 +0000
commit4c7c69a8a0074db7eb3adbf2512eab959c9cba78 (patch)
tree63af59f371339b42e0ca8ec16cebbcc927bfb6b7 /ybd.py
parent13dcc7eb00adbd11b2441e63c7ab0e0418288e7a (diff)
downloadybd-4c7c69a8a0074db7eb3adbf2512eab959c9cba78.tar.gz
Tidyup and fix case where definition does not exist
Diffstat (limited to 'ybd.py')
-rwxr-xr-xybd.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/ybd.py b/ybd.py
index 40cf259..feeb684 100755
--- a/ybd.py
+++ b/ybd.py
@@ -31,9 +31,7 @@ target = os.path.splitext(os.path.basename(sys.argv[1]))[0]
arch = sys.argv[2]
with app.setup(target, arch):
with app.timer('TOTAL', 'YBD starts'):
- defs = Definitions()
- definition = defs.get(target)
with app.timer('CACHE-KEYS', 'Calculating'):
cache.get_cache(target)
- defs.save_trees()
- assemble(definition)
+ Definitions().save_trees()
+ assemble(target)