sb: Fix the downloader file:// URL to copy the file to the local path.

This commit is contained in:
Chris Johns
2015-06-16 20:57:06 +10:00
parent 18cea20a12
commit 5b5d6bff74
2 changed files with 19 additions and 5 deletions

View File

@@ -167,6 +167,18 @@ def expand(name, paths):
l += [join(p, name)]
return l
def copy(src, dst):
hsrc = host(src)
hdst = host(dst)
try:
shutil.copy(hsrc, hdst)
except OSError, why:
if windows:
if WindowsError is not None and isinstance(why, WindowsError):
pass
else:
raise error.general('copying tree: %s -> %s: %s' % (hsrc, hdst, str(why)))
def copy_tree(src, dst):
trace = False