Chromium Code Reviews| Index: build/android/gyp/create_device_library_links.py |
| diff --git a/build/android/gyp/create_device_library_links.py b/build/android/gyp/create_device_library_links.py |
| index e71f72729cb90bf2eee3498bb27c2b79c170756a..a45ea00139c7e9116858539f9f8fcf921329d822 100755 |
| --- a/build/android/gyp/create_device_library_links.py |
| +++ b/build/android/gyp/create_device_library_links.py |
| @@ -47,14 +47,16 @@ def CreateLinks(options): |
| serial_number = adb.Adb().GetSerialNumber() |
| for lib in libraries: |
| host_path = os.path.join(options.libraries_dir, lib) |
| - |
| - md5_stamp = '%s.%s.link.md5' % (host_path, serial_number) |
| - md5_checker = md5_check.Md5Checker(stamp=md5_stamp, inputs=[host_path]) |
| - if md5_checker.IsStale(): |
| + def CreateLink(): |
| link = '/data/data/' + apk_package + '/lib/' + lib |
| target = options.target_dir + '/' + lib |
| RunLinkCommand(adb, target, link) |
| - md5_checker.Write() |
| + |
| + record_path = '%s.%s.link.md5' % (host_path, serial_number) |
|
nilesh
2013/04/15 18:28:42
.stamp
cjhopman
2013/04/15 18:32:35
Done.
|
| + md5_check.CallAndRecordIfStale( |
| + CreateLink, |
| + record_path=record_path, |
| + input_paths=[host_path]) |
| def main(argv): |