diff options
author | Tom Pollard <tom.pollard@codethink.co.uk> | 2019-02-08 10:44:29 +0000 |
---|---|---|
committer | Tom Pollard <tom.pollard@codethink.co.uk> | 2019-02-13 13:37:32 +0000 |
commit | 118644b22b01a7849a9f8e8e9637e817ed8c443d (patch) | |
tree | 30628eedcf5b43d109f2779b8863b3b991415bd7 /buildstream/_frontend/app.py | |
parent | ae0ee361350b13a6c0f2fb24d3a24579305a021b (diff) | |
download | buildstream-118644b22b01a7849a9f8e8e9637e817ed8c443d.tar.gz |
Add cli main & user conf option for 'cache-buildtrees' context
_context.py: Add cache_buildtrees global user context, the default
of which is set to by default to 'always' via the addition of
cache-buildtrees to userconfig.yaml cache group. 'failure' & 'never'
can be given as valid options.
app.py & cli.py: Add --cache-buildtrees as a bst main option, which
when passed with a valid option can override the default or user
defined context for cache_buildtrees.
tests/completions/completions.py: Update for the added flag.
Diffstat (limited to 'buildstream/_frontend/app.py')
-rw-r--r-- | buildstream/_frontend/app.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/buildstream/_frontend/app.py b/buildstream/_frontend/app.py index b6da079bd..329f9a2c6 100644 --- a/buildstream/_frontend/app.py +++ b/buildstream/_frontend/app.py @@ -183,7 +183,8 @@ class App(): 'builders': 'sched_builders', 'pushers': 'sched_pushers', 'network_retries': 'sched_network_retries', - 'pull_buildtrees': 'pull_buildtrees' + 'pull_buildtrees': 'pull_buildtrees', + 'cache_buildtrees': 'cache_buildtrees' } for cli_option, context_attr in override_map.items(): option_value = self._main_options.get(cli_option) |