You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by ro...@apache.org on 2020/12/29 13:38:45 UTC
[buildstream] 14/20: _casbaseddirectory: List directory names in
file lists
This is an automated email from the ASF dual-hosted git repository.
root pushed a commit to branch jmac/virtual_directory_tests
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 1ac5be0fa2171af2f704def2227b96325e06abd6
Author: Jim MacArthur <ji...@codethink.co.uk>
AuthorDate: Mon Sep 17 17:12:39 2018 +0100
_casbaseddirectory: List directory names in file lists
---
buildstream/storage/_casbaseddirectory.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/buildstream/storage/_casbaseddirectory.py b/buildstream/storage/_casbaseddirectory.py
index 6da605e..0dd37af 100644
--- a/buildstream/storage/_casbaseddirectory.py
+++ b/buildstream/storage/_casbaseddirectory.py
@@ -722,6 +722,7 @@ class CasBasedDirectory(Directory):
for (k, v) in self.index.items():
if isinstance(v.buildstream_object, CasBasedDirectory):
filelist.extend([k + os.path.sep + x for x in v.buildstream_object.list_relative_paths()])
+ filelist.append(k)
print("Add directory {}".format(k))
elif isinstance(v.pb_object, remote_execution_pb2.FileNode):
filelist.append(k)