Merge "Remove duplicate slashes from find_and_copy results"
This commit is contained in:
@@ -479,8 +479,8 @@ def _file_wildcard_exists(file_pattern):
|
|||||||
|
|
||||||
def _find_and_copy(pattern, from_dir, to_dir):
|
def _find_and_copy(pattern, from_dir, to_dir):
|
||||||
"""Return a copy list for the files matching the pattern."""
|
"""Return a copy list for the files matching the pattern."""
|
||||||
return sorted(["%s/%s:%s/%s" % (
|
return sorted([("%s/%s:%s/%s" % (from_dir, f, to_dir, f))
|
||||||
from_dir, f, to_dir, f) for f in rblf_find_files(from_dir, pattern, only_files=1)])
|
.replace("//", "/") for f in rblf_find_files(from_dir, pattern, only_files=1)])
|
||||||
|
|
||||||
def _findstring(needle, haystack):
|
def _findstring(needle, haystack):
|
||||||
"""Equivalent to GNU make's $(findstring)."""
|
"""Equivalent to GNU make's $(findstring)."""
|
||||||
|
Reference in New Issue
Block a user