Skip to content
Snippets Groups Projects
Commit 038a67b9 authored by Jonathan Maw's avatar Jonathan Maw
Browse files

_stream.py: Re-create the .bstproject when resetting the workspace

parent f3207737
No related branches found
No related tags found
No related merge requests found
......@@ -607,6 +607,8 @@ class Stream():
for element in elements:
workspace = workspaces.get_workspace(element._get_full_name())
workspace_path = workspace.get_absolute_path()
workspace_locals = self._context.get_workspace_locals()
workspace_local = workspace_locals.get(workspace_path)
if soft:
workspace.prepared = False
self._message(MessageType.INFO, "Reset workspace state for {} at: {}"
......@@ -627,6 +629,8 @@ class Stream():
with element.timed_activity("Staging sources to {}".format(workspace_path)):
element._open_workspace()
workspace_local.write()
self._message(MessageType.INFO,
"Reset workspace for {} at: {}".format(element.name,
workspace_path))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment