diff options
author | Jürg Billeter <j@bitron.ch> | 2018-01-15 11:24:04 +0100 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2018-01-16 12:58:39 +0000 |
commit | e311ebe5239cf4927eb5c9094dce0d37fc169819 (patch) | |
tree | b99c0b4c947b56a948f0a6750e008c58ec447261 /buildstream/_frontend | |
parent | 633ef73519c695ccb254e3d5ed17c419f8737c79 (diff) | |
download | buildstream-e311ebe5239cf4927eb5c9094dce0d37fc169819.tar.gz |
_frontend/main.py: Fix `inconsistent` argument
Do not mark target element as inconsistent for `bst source-bundle` and
`bst workspace open` if tracking is disabled.
Diffstat (limited to 'buildstream/_frontend')
-rw-r--r-- | buildstream/_frontend/main.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/_frontend/main.py b/buildstream/_frontend/main.py index e195a33a4..44c54e95e 100644 --- a/buildstream/_frontend/main.py +++ b/buildstream/_frontend/main.py @@ -580,7 +580,7 @@ def checkout(app, element, directory, force, integrate, hardlinks): def source_bundle(app, target, force, directory, track, compression, except_): """Produce a source bundle to be manually executed""" - app.initialize((target,), rewritable=track, inconsistent=[target]) + app.initialize((target,), rewritable=track, inconsistent=[target] if track else None) try: dependencies = app.pipeline.deps_elements('all') app.print_heading(dependencies) @@ -621,7 +621,7 @@ def workspace(): def workspace_open(app, no_checkout, force, source, track, element, directory): """Open a workspace for manual source modification""" - app.initialize((element,), rewritable=track, inconsistent=[element]) + app.initialize((element,), rewritable=track, inconsistent=[element] if track else None) try: app.pipeline.open_workspace(app.scheduler, directory, source, no_checkout, track, force) click.echo("", err=True) |