Merge "Remove duplicate slashes from find_and_copy results" am: 057667a90f
Original change: https://android-review.googlesource.com/c/platform/build/+/2011795 Change-Id: Ia9047488f88a379c86178be447c126cecd46b8c6
This commit is contained in:
commit
4ea401ac58
1 changed files with 2 additions and 2 deletions
|
@ -479,8 +479,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 sorted(["%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))
|
||||
.replace("//", "/") for f in rblf_find_files(from_dir, pattern, only_files=1)])
|
||||
|
||||
def _findstring(needle, haystack):
|
||||
"""Equivalent to GNU make's $(findstring)."""
|
||||
|
|
Loading…
Reference in a new issue