Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(508)

Unified Diff: sky/tools/android_library_cacher.py

Issue 1158493005: Cache .so files for debugging per device and don't redownload .so's that are in your cache (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sky/tools/skydb » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tools/android_library_cacher.py
diff --git a/sky/tools/android_library_cacher.py b/sky/tools/android_library_cacher.py
index 564448a050042acb205a98ae0c4b280aa7b61b30..a0813979eee57cada9608b8e09200496b2bd6d58 100755
--- a/sky/tools/android_library_cacher.py
+++ b/sky/tools/android_library_cacher.py
@@ -57,6 +57,8 @@ def main():
dest_dir = os.path.dirname(dest_file)
if not os.path.exists(dest_dir):
os.makedirs(dest_dir)
+ if os.path.exists(dest_file):
+ continue
print '%s -> %s' % (library_path, dest_file)
pull_cmd = [ADB_PATH, 'pull', library_path, dest_file]
subprocess.check_call(pull_cmd, stderr=dev_null)
« no previous file with comments | « no previous file | sky/tools/skydb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698