summaryrefslogtreecommitdiff
path: root/buildstream/storage/_filebaseddirectory.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/storage/_filebaseddirectory.py')
-rw-r--r--buildstream/storage/_filebaseddirectory.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/buildstream/storage/_filebaseddirectory.py b/buildstream/storage/_filebaseddirectory.py
index 17144bc5f..8956d303a 100644
--- a/buildstream/storage/_filebaseddirectory.py
+++ b/buildstream/storage/_filebaseddirectory.py
@@ -121,8 +121,12 @@ class FileBasedDirectory(Directory):
for f in import_result.files_written:
os.utime(os.path.join(self.external_directory, f), times=(cur_time, cur_time))
+ self._mark_changed()
return import_result
+ def _mark_changed(self):
+ self._directory_read = False
+
def set_deterministic_mtime(self):
_set_deterministic_mtime(self.external_directory)