| Index: build/android/gyp/push_libraries.py
|
| diff --git a/build/android/gyp/push_libraries.py b/build/android/gyp/push_libraries.py
|
| index e586d0be6d577e19a0ba585d10df73702b0e9aeb..70a1fcb4f82f7e9d8f44de91f53c4e6a0cc2be3e 100755
|
| --- a/build/android/gyp/push_libraries.py
|
| +++ b/build/android/gyp/push_libraries.py
|
| @@ -27,19 +27,21 @@ def DoPush(options):
|
|
|
| adb = android_commands.AndroidCommands()
|
| serial_number = adb.Adb().GetSerialNumber()
|
| - needs_directory = True
|
| + # A list so that it is modifiable in Push below.
|
| + needs_directory = [True]
|
| for lib in libraries:
|
| device_path = os.path.join(options.device_dir, lib)
|
| host_path = os.path.join(options.libraries_dir, lib)
|
|
|
| - md5_stamp = '%s.%s.push.md5' % (host_path, serial_number)
|
| - md5_checker = md5_check.Md5Checker(stamp=md5_stamp, inputs=[host_path])
|
| - if md5_checker.IsStale():
|
| + def Push():
|
| if needs_directory:
|
| adb.RunShellCommand('mkdir ' + options.device_dir)
|
| - needs_directory = False
|
| + needs_directory[:] = [] # = False
|
| adb.PushIfNeeded(host_path, device_path)
|
| - md5_checker.Write()
|
| +
|
| + record_path = '%s.%s.push.md5.stamp' % (host_path, serial_number)
|
| + md5_check.CallAndRecordIfStale(
|
| + Push, record_path=record_path, input_paths=[host_path])
|
|
|
|
|
| def main(argv):
|
|
|