Index: build/android/pylib/android_commands.py |
diff --git a/build/android/pylib/android_commands.py b/build/android/pylib/android_commands.py |
index 28cf4bb7e2185405b686c17c63cdbff9217fc4fb..9f5c2dfbe86dc3fc88eb2d0ccdb35a8f7dfa8cbd 100644 |
--- a/build/android/pylib/android_commands.py |
+++ b/build/android/pylib/android_commands.py |
@@ -899,10 +899,8 @@ class AndroidCommands(object): |
# TODO(craigdh): Replace this educated guess with a heuristic that |
# approximates the push time for each method. |
if len(changed_files) > MAX_INDIVIDUAL_PUSHES or diff_size > 0.5 * size: |
- # We're pushing everything, remove everything first and then create it. |
self._actual_push_size += size |
if os.path.isdir(host_path): |
- self.RunShellCommand('rm -r %s' % device_path, timeout_time=2 * 60) |
self.RunShellCommand('mkdir -p %s' % device_path) |
Push(host_path, device_path) |
else: |