Support faster incremental Chromium/CEF updates with automate-git.py --fast-update (issue #2435).

This commit is contained in:
Marshall Greenblatt
2018-05-07 18:50:39 +02:00
parent f24f885eeb
commit 1f4f8f4af7
3 changed files with 86 additions and 16 deletions

View File

@@ -52,7 +52,7 @@ def backup_file(name):
def copy_file(src, dst, quiet=True):
""" Copy a file. """
try:
shutil.copy(src, dst)
shutil.copy2(src, dst)
if not quiet:
sys.stdout.write('Transferring ' + src + ' file.\n')
except IOError, (errno, strerror):