Merge "Return find_and_copy result in sorted order." am: 128bfc440e
Original change: https://android-review.googlesource.com/c/platform/build/+/1836494 Change-Id: I44bf1da6108f9a0f4974b73ab252fd1d2e2b23b8
This commit is contained in:
@@ -401,8 +401,8 @@ def _file_wildcard_exists(file_pattern):
|
||||
|
||||
def _find_and_copy(pattern, from_dir, to_dir):
|
||||
"""Return a copy list for the files matching the pattern."""
|
||||
return ["%s/%s:%s/%s" % (
|
||||
from_dir, f, to_dir, f) for f in rblf_find_files(from_dir, pattern, only_files=1)]
|
||||
return sorted(["%s/%s:%s/%s" % (
|
||||
from_dir, f, to_dir, f) for f in rblf_find_files(from_dir, pattern, only_files=1)])
|
||||
|
||||
def _filter_out(pattern, text):
|
||||
"""Return all the words from `text' that do not match any word in `pattern'.
|
||||
|
Reference in New Issue
Block a user