summaryrefslogtreecommitdiff
path: root/buildstream/element.py
diff options
context:
space:
mode:
authorTristan Maat <tristan.maat@codethink.co.uk>2018-03-12 12:56:55 +0000
committerTristan Maat <tristan.maat@codethink.co.uk>2018-03-27 14:32:54 +0100
commit1d9ea9171dbf4c3244c9acf8da7a00c6825c3217 (patch)
tree3fe8ee681feb0f4fce28fbc1e00455e17544b004 /buildstream/element.py
parent18896a9e02e2677910c567de25760dd0432ac43a (diff)
downloadbuildstream-1d9ea9171dbf4c3244c9acf8da7a00c6825c3217.tar.gz
Add list of running files to workspace metadata
Diffstat (limited to 'buildstream/element.py')
-rw-r--r--buildstream/element.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/buildstream/element.py b/buildstream/element.py
index bc3063b6c..fa523d8b1 100644
--- a/buildstream/element.py
+++ b/buildstream/element.py
@@ -523,6 +523,9 @@ class Element(Plugin):
# files, since removed files will be picked up by
# build systems anyway.
to_update, _, added = self.__artifacts.diff(dep, key_old, key_new, subdir='files')
+ workspace.add_running_files(dep, to_update + added)
+ self._get_project()._workspaces.save_config()
+ to_update.extend(workspace.running_files[dep.name])
result = dep.stage_artifact(sandbox,
path=path,
@@ -893,10 +896,11 @@ class Element(Plugin):
self._update_state()
- if self._workspaced():
+ if self._workspaced() and self._cached():
key = self._get_cache_key()
workspace = self._get_workspace()
workspace.last_successful = key
+ workspace.clear_running_files()
self._get_project()._workspaces.save_config()
# _cached():