CopyToDevice: require caller to select a mode.
As the fallback behavior is a bit hard to test, require the caller to
declare a preference for the mode parameter. Also fix all callers
with the previous default behavior of 'rsync'.
BUG=chromium:703259
TEST=None.
Change-Id: I81280cf251ea873abc8c74b7cb8973e826597abc
Reviewed-on: https://chromium-review.googlesource.com/461276
Reviewed-by: Ilja H. Friedel <ihf@chromium.org>
Tested-by: Ilja H. Friedel <ihf@chromium.org>
Commit-Queue: Ilja H. Friedel <ihf@chromium.org>
diff --git a/cli/deploy.py b/cli/deploy.py
index 3321153..e33bfb7 100644
--- a/cli/deploy.py
+++ b/cli/deploy.py
@@ -743,7 +743,7 @@
# This message is read by BrilloDeployOperation.
logging.notice('Copying %s to device.', pkg_name)
- device.CopyToDevice(pkg_path, pkg_dir, remote_sudo=True)
+ device.CopyToDevice(pkg_path, pkg_dir, mode='rsync', remote_sudo=True)
logging.info('Use portage temp dir %s', portage_tmpdir)