summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2019-02-01 11:28:31 +0000
committerJürg Billeter <j@bitron.ch>2019-02-11 08:16:18 +0100
commit302939c994954190da85e58b90b3e39c81d119c8 (patch)
treebf1cf7ec5e738c5f999d7a9f04692d8459edde71
parentfb01180dc36fce2bf5ce463e0a7defbf5020cc69 (diff)
downloadbuildstream-juerg/list-all-directories.tar.gz
_casbaseddirectory.py: Return all directories in list_relative_paths()juerg/list-all-directories
This matches the change in utils.list_relative_paths().
-rw-r--r--buildstream/storage/_casbaseddirectory.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/buildstream/storage/_casbaseddirectory.py b/buildstream/storage/_casbaseddirectory.py
index 09c8c9875..b6a39b83d 100644
--- a/buildstream/storage/_casbaseddirectory.py
+++ b/buildstream/storage/_casbaseddirectory.py
@@ -800,11 +800,11 @@ class CasBasedDirectory(Directory):
directory_list = filter(lambda i: isinstance(i[1].buildstream_object, CasBasedDirectory),
self.index.items())
- if file_list == [] and relpath != "":
+ if relpath != "":
yield relpath
- else:
- for (k, v) in sorted(file_list):
- yield os.path.join(relpath, k)
+
+ for (k, v) in sorted(file_list):
+ yield os.path.join(relpath, k)
for (k, v) in sorted(directory_list):
yield from v.buildstream_object.list_relative_paths(relpath=os.path.join(relpath, k))