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 |