OLD | NEW |
---|---|
(Empty) | |
1 #!/usr/bin/env python | |
2 # Copyright (c) 2014 The Chromium Authors. All rights reserved. | |
3 # Use of this source code is governed by a BSD-style license that can be | |
4 # found in the LICENSE file. | |
5 | |
6 # Declare this so we can execfile(DEPS), which uses Var function | |
7 def Var(str): | |
8 return str | |
9 | |
10 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
| |
11 sdk_extras_lists = [hook['action'][2:] for hook in hooks | |
12 if hook['name'] == 'sdkextras'] | |
13 sdk_extras = [sdk_extra[sdk_extra.index('_')+1: | |
14 sdk_extra.rindex('_')].replace('_', ' ') | |
15 for sublst in sdk_extras_lists | |
16 for sdk_extra in sublst] | |
17 for sdk_extra in sdk_extras: | |
18 print sdk_extra | |
OLD | NEW |