From e403cfba7dd7cb724b13a039f1b42b44ac1b2d51 Mon Sep 17 00:00:00 2001 From: Paul Sherwood Date: Sun, 29 May 2016 14:54:09 +0100 Subject: Reverse logic, lose a line --- ybd/cache.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ybd/cache.py') diff --git a/ybd/cache.py b/ybd/cache.py index d800b43..c911bca 100644 --- a/ybd/cache.py +++ b/ybd/cache.py @@ -47,9 +47,8 @@ def cache_key(defs, this): definition['cache'] = 'calculating' - if app.config.get('mode', 'normal') in ['parse-only', 'no-build']: - key = 'no-build' - else: + key = 'no-build' + if app.config.get('mode', 'normal') in ['keys-only', 'normal']: if definition.get('repo') and not definition.get('tree'): definition['tree'] = get_tree(definition) factors = hash_factors(defs, definition) -- cgit v1.2.1