OLD | NEW |
---|---|
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # pylint: disable=F0401 | 5 # pylint: disable=F0401 |
6 import recipe_util | 6 import recipe_util |
7 import sys | 7 import sys |
8 | 8 |
9 # pylint: disable=W0232 | 9 # pylint: disable=W0232 |
10 class Chromium(recipe_util.Recipe): | 10 class Chromium(recipe_util.Recipe): |
(...skipping 12 matching lines...) Expand all Loading... | |
23 if props.get('webkit_rev', '') == 'ToT': | 23 if props.get('webkit_rev', '') == 'ToT': |
24 solution['custom_vars'] = {'webkit_rev': ''} | 24 solution['custom_vars'] = {'webkit_rev': ''} |
25 spec = { | 25 spec = { |
26 'solutions': [solution], | 26 'solutions': [solution], |
27 'svn_url': 'svn://svn.chromium.org/chrome', | 27 'svn_url': 'svn://svn.chromium.org/chrome', |
28 'svn_branch': 'trunk/src', | 28 'svn_branch': 'trunk/src', |
29 'svn_ref': 'git-svn', | 29 'svn_ref': 'git-svn', |
30 } | 30 } |
31 if props.get('submodule_git_svn_spec'): | 31 if props.get('submodule_git_svn_spec'): |
32 spec['submodule_git_svn_spec'] = props['submodule_git_svn_spec'] | 32 spec['submodule_git_svn_spec'] = props['submodule_git_svn_spec'] |
33 checkout_type = 'gclient_git_svn' | |
34 if props.get('nosvn'): | |
agable
2013/04/11 18:00:18
Due to current options processing (which I'm in th
| |
35 checkout_type = 'gclient_git' | |
36 spec_type = '%s_spec' % checkout_type | |
33 return { | 37 return { |
34 'type': 'gclient_git_svn', | 38 'type': checkout_type, |
35 'gclient_git_svn_spec': spec | 39 spec_type: spec |
36 } | 40 } |
37 | 41 |
38 @staticmethod | 42 @staticmethod |
39 def expected_root(_props): | 43 def expected_root(_props): |
40 return 'src' | 44 return 'src' |
41 | 45 |
42 | 46 |
43 def main(argv=None): | 47 def main(argv=None): |
44 return Chromium().handle_args(argv) | 48 return Chromium().handle_args(argv) |
45 | 49 |
46 | 50 |
47 if __name__ == '__main__': | 51 if __name__ == '__main__': |
48 sys.exit(main(sys.argv)) | 52 sys.exit(main(sys.argv)) |
OLD | NEW |