Index: build/android/gyp/apk_install.py |
diff --git a/build/android/gyp/apk_install.py b/build/android/gyp/apk_install.py |
index f8e7caab8d562ec2923e2071c995544307e6dd94..8f1e69b15ba937954670aa4f4de258096255fbd8 100755 |
--- a/build/android/gyp/apk_install.py |
+++ b/build/android/gyp/apk_install.py |
@@ -38,13 +38,12 @@ def main(argv): |
options.apk_path] |
serial_number = android_commands.AndroidCommands().Adb().GetSerialNumber() |
- md5_stamp = '%s.%s.md5' % (options.apk_path, serial_number) |
- |
- md5_checker = md5_check.Md5Checker( |
- stamp=md5_stamp, inputs=[options.apk_path], command=install_cmd) |
- if md5_checker.IsStale(): |
- build_utils.CheckCallDie(install_cmd) |
- md5_checker.Write() |
+ record_path = '%s.%s.md5.stamp' % (options.apk_path, serial_number) |
+ md5_check.CallAndRecordIfStale( |
+ lambda: build_utils.CheckCallDie(install_cmd), |
+ record_path=record_path, |
+ input_paths=[options.apk_path], |
+ input_strings=install_cmd) |
if options.stamp: |
build_utils.Touch(options.stamp) |