You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by gi...@apache.org on 2020/12/29 13:13:38 UTC
[buildstream] 17/43: CASBasedDirectory: Do not sort the input file
list!
This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch jmac/cas_to_cas_oct_v2
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 09616076d5f58f015291b7a806b7d4e0122b53db
Author: Jim MacArthur <ji...@codethink.co.uk>
AuthorDate: Tue Oct 23 17:57:54 2018 +0100
CASBasedDirectory: Do not sort the input file list!
---
buildstream/storage/_casbaseddirectory.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/buildstream/storage/_casbaseddirectory.py b/buildstream/storage/_casbaseddirectory.py
index fd7b28a..28598b5 100644
--- a/buildstream/storage/_casbaseddirectory.py
+++ b/buildstream/storage/_casbaseddirectory.py
@@ -509,7 +509,7 @@ class CasBasedDirectory(Directory):
def _import_files_from_directory(self, source_directory, files, path_prefix=""):
""" Imports files from a traditional directory """
result = FileListResult()
- for entry in sorted(files):
+ for entry in files:
print("Importing {} from file system".format(entry))
print("...Order of elements was {}".format(", ".join(self.index.keys())))