OLD | NEW |
1 | 1 |
2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 from recipe_engine.types import freeze | 6 from recipe_engine.types import freeze |
7 | 7 |
8 DEPS = [ | 8 DEPS = [ |
9 'depot_tools/bot_update', | 9 'depot_tools/bot_update', |
10 'depot_tools/gclient', | 10 'depot_tools/gclient', |
11 'depot_tools/git', | 11 'depot_tools/git', |
| 12 'depot_tools/infra_paths', |
12 'recipe_engine/json', | 13 'recipe_engine/json', |
13 'recipe_engine/path', | 14 'recipe_engine/path', |
14 'recipe_engine/properties', | 15 'recipe_engine/properties', |
15 'recipe_engine/python', | 16 'recipe_engine/python', |
16 'recipe_engine/raw_io', | 17 'recipe_engine/raw_io', |
17 'recipe_engine/step', | 18 'recipe_engine/step', |
18 'v8', | 19 'v8', |
19 ] | 20 ] |
20 | 21 |
21 AUTO_REVIEWERS = [ | 22 AUTO_REVIEWERS = [ |
(...skipping 22 matching lines...) Expand all Loading... |
44 '\'managed\':False,' | 45 '\'managed\':False,' |
45 '\'name\':\'%s\',' | 46 '\'name\':\'%s\',' |
46 '\'url\':\'%s\',' | 47 '\'url\':\'%s\',' |
47 '\'deps_file\':\'DEPS\'}]' % (name, repo)) | 48 '\'deps_file\':\'DEPS\'}]' % (name, repo)) |
48 | 49 |
49 # Read local deps information. Each deps has one line in the format: | 50 # Read local deps information. Each deps has one line in the format: |
50 # path/to/deps: repo@revision | 51 # path/to/deps: repo@revision |
51 step_result = api.gclient( | 52 step_result = api.gclient( |
52 'get %s deps' % name, | 53 'get %s deps' % name, |
53 ['revinfo', '--deps', 'all', '--spec', spec], | 54 ['revinfo', '--deps', 'all', '--spec', spec], |
54 cwd=api.path['slave_build'], | 55 cwd=api.infra_paths['slave_build'], |
55 stdout=api.raw_io.output(), | 56 stdout=api.raw_io.output(), |
56 ) | 57 ) |
57 | 58 |
58 # Transform into dict. Skip the solution prefix in keys (e.g. src/). | 59 # Transform into dict. Skip the solution prefix in keys (e.g. src/). |
59 deps = {} | 60 deps = {} |
60 for line in step_result.stdout.strip().splitlines(): | 61 for line in step_result.stdout.strip().splitlines(): |
61 key, value = line.strip().split(' ') | 62 key, value = line.strip().split(' ') |
62 | 63 |
63 # Remove trailing colon. | 64 # Remove trailing colon. |
64 key = key.split(':')[0] | 65 key = key.split(':')[0] |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 ) + | 224 ) + |
224 api.override_step_data( | 225 api.override_step_data( |
225 'look up another_dep', | 226 'look up another_dep', |
226 api.raw_io.stream_output('deadbeaf\tHEAD', stream='stdout'), | 227 api.raw_io.stream_output('deadbeaf\tHEAD', stream='stdout'), |
227 ) + | 228 ) + |
228 api.override_step_data( | 229 api.override_step_data( |
229 'git diff', | 230 'git diff', |
230 api.raw_io.stream_output('some difference', stream='stdout'), | 231 api.raw_io.stream_output('some difference', stream='stdout'), |
231 ) | 232 ) |
232 ) | 233 ) |
OLD | NEW |