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

Unified Diff: build/get_sdk_extras_packages.py

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: 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 | « no previous file | build/install-build-deps-android.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/get_sdk_extras_packages.py
diff --git a/build/get_sdk_extras_packages.py b/build/get_sdk_extras_packages.py
new file mode 100755
index 0000000000000000000000000000000000000000..c3237929e84f88deb562c8d36cd04e221b2b714d
--- /dev/null
+++ b/build/get_sdk_extras_packages.py
@@ -0,0 +1,18 @@
+#!/usr/bin/env python
+# Copyright (c) 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# Declare this so we can execfile(DEPS), which uses Var function
+def Var(str):
+ return str
+
+def get_sdk_extras(hooks):
navabi 2015/01/07 03:25:38 Need some comments here about how I am looking in
cjhopman 2015/01/07 03:57:49 What about maintaining the list of these packages
navabi 2015/01/07 16:41:18 That's a good suggestion, because I don't like tha
+ sdk_extras_lists = [hook['action'][2:] for hook in hooks
+ if hook['name'] == 'sdkextras']
+ sdk_extras = [sdk_extra[sdk_extra.index('_')+1:
+ sdk_extra.rindex('_')].replace('_', ' ')
+ for sublst in sdk_extras_lists
+ for sdk_extra in sublst]
+ for sdk_extra in sdk_extras:
+ print sdk_extra
« no previous file with comments | « no previous file | build/install-build-deps-android.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698