Index: build/android/gyp/jar_toc.py |
diff --git a/build/android/gyp/jar_toc.py b/build/android/gyp/jar_toc.py |
index b40f43dca6647d1cb7a918bbf28e674f57ecb0cf..9db9d2665b5261e5b237e8146a42631eed50f04d 100755 |
--- a/build/android/gyp/jar_toc.py |
+++ b/build/android/gyp/jar_toc.py |
@@ -81,13 +81,13 @@ def UpdateToc(jar_path, toc_path): |
def DoJarToc(options): |
jar_path = options.jar_path |
toc_path = options.toc_path |
- md5_stamp_path = '%s.md5' % toc_path |
- md5_checker = md5_check.Md5Checker(stamp=md5_stamp_path, inputs=[jar_path]) |
- if md5_checker.IsStale(): |
- UpdateToc(jar_path, toc_path) |
- md5_checker.Write() |
- else: |
- build_utils.Touch(toc_path) |
+ record_path = '%s.md5.stamp' % toc_path |
+ md5_check.CallAndRecordIfStale( |
+ lambda: UpdateToc(jar_path, toc_path), |
+ record_path=record_path, |
+ input_paths=[jar_path], |
+ ) |
+ build_utils.Touch(toc_path) |
def main(argv): |