summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/buildstream/_stream.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildstream/_stream.py b/src/buildstream/_stream.py
index 11ac53f3f..d791449cc 100644
--- a/src/buildstream/_stream.py
+++ b/src/buildstream/_stream.py
@@ -771,14 +771,14 @@ class Stream():
.format(target.name, directory), reason='bad-directory')
# So far this function has tried to catch as many issues as possible with out making any changes
- # Now it dose the bits that can not be made atomic.
+ # Now it does the bits that can not be made atomic.
targetGenerator = zip(elements, expanded_directories)
for target, directory in targetGenerator:
self._message(MessageType.INFO, "Creating workspace for element {}"
.format(target.name))
workspace = workspaces.get_workspace(target._get_full_name())
- if workspace:
+ if workspace and not no_checkout:
workspaces.delete_workspace(target._get_full_name())
workspaces.save_config()
shutil.rmtree(directory)