Skip to content
Snippets Groups Projects
Commit e584d416 authored by Jürg Billeter's avatar Jürg Billeter Committed by Raoul Hidalgo Charman
Browse files

_casbaseddirectory.py: Return all directories in list_relative_paths()

This matches the change in utils.list_relative_paths().
parent d1e267b1
No related branches found
No related tags found
Loading
......@@ -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))
......
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