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

Unified Diff: platform_tools/android/bin/download_toolchains.py

Issue 15951008: Remove dependency of gsutil to download ndk (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 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 | « platform_tools/android/bin/android_setup.sh ('k') | platform_tools/android/bin/download_utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: platform_tools/android/bin/download_toolchains.py
diff --git a/platform_tools/android/bin/download_toolchains.py b/platform_tools/android/bin/download_toolchains.py
new file mode 100755
index 0000000000000000000000000000000000000000..9922283dc07be4426ba0ec309cd4eb5c244e5fbe
--- /dev/null
+++ b/platform_tools/android/bin/download_toolchains.py
@@ -0,0 +1,19 @@
+#!/usr/bin/python
+
+"""Download all toolchains for this platform.
+
+This module downloads multiple tgz's.
+"""
+
+import download_utils
+import sys
+
+url = sys.argv[1]
+filepath = sys.argv[2]
+
+try:
+ download_utils.SyncURL(url, filepath)
+ exit(0)
+except download_utils.HashError, e:
+ exit(1)
+
« no previous file with comments | « platform_tools/android/bin/android_setup.sh ('k') | platform_tools/android/bin/download_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698