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

Unified Diff: build/install-build-deps-android.sh

Issue 8438010: Update android install build deps for virgin run. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/install-build-deps-android.sh
diff --git a/build/install-build-deps-android.sh b/build/install-build-deps-android.sh
index db935224211b0a3ba0ac75dafbc7c3b840b0362c..1e82fe8e3248a7285b3d71a59234b40aa4b12ac5 100755
--- a/build/install-build-deps-android.sh
+++ b/build/install-build-deps-android.sh
@@ -102,8 +102,19 @@ if [[ ! $("${ANDROID_SDK_ROOT}/tools/android" list targets \
# From current configuration, all android platforms will be installed.
# This will take a little bit long time.
echo "Install platform, platform-tool and tool ..."
- "${ANDROID_SDK_ROOT}"/tools/android update sdk --no-ui \
- --filter platform,platform-tool,tool
+
+ # This needs to be called twice. The first time, "android" itself
+ # references
+ # https://dl-ssl.google.com/android/repository/addons_list.xml,
+ # which no longer exists. On the second run, "android" (or one of
+ # it's config files) has been updated to now reference curl
+ # https://dl-ssl.google.com/android/repository/addons_list-1.xml,
+ # which contains what we need.
+ for try in 1 2 ; do
+ echo "==== SDK update $try"
+ "${ANDROID_SDK_ROOT}"/tools/android update sdk --no-ui \
+ --filter platform,platform-tool,tool
+ done
fi
# Create a Android Virtual Device named 'buildbot' with default hardware
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698