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

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

Issue 838733002: Install sdk extras packages using android to prompt for ToS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Determine packages to download from json file. Created 5 years, 11 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 | « build/get_sdk_extras_packages.py ('k') | 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 1fcf4fb38b5ec9fa39ec4d6a4a51c25983549b7e..0591bbf4dd78fc96470a4b075c66df19f0084ee1 100755
--- a/build/install-build-deps-android.sh
+++ b/build/install-build-deps-android.sh
@@ -84,4 +84,16 @@ then
fi
fi
+# Get the SDK extras packages to install from the DEPS file 'sdkextras' hook.
+packages="$(python -c 'execfile("./get_sdk_extras_packages.py")')"
+for package in "${packages}"; do
+ package_num=$(../third_party/android_tools/sdk/tools/android list sdk \
friedman1 2015/01/08 22:06:41 Move the pipes to the prev line so the next line i
navabi 2015/01/09 01:14:52 Done.
+ | grep -i "$package," \
+ | awk '/^[ ]*[0-9]*- / {gsub("-",""); print $1}')
+ if [[ -n ${package_num} ]]; then
+ ../third_party/android_tools/sdk/tools/android update sdk --no-ui --filter \
+ ${package_num}
+ fi
+done
+
echo "install-build-deps-android.sh complete."
« no previous file with comments | « build/get_sdk_extras_packages.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698