Chromium Code Reviews| 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 if props.get('target_os'): | |
| 34 spec['target_os'] = props['target_os'].split(',') | |
|
M-A Ruel
2013/04/24 13:09:14
Any problem about whitespaces? If so;
[i.strip() f
janx
2013/04/26 10:05:09
I don't see why we would have whitespace problems.
| |
| 33 checkout_type = 'gclient_git_svn' | 35 checkout_type = 'gclient_git_svn' |
| 34 if props.get('nosvn'): | 36 if props.get('nosvn'): |
| 35 checkout_type = 'gclient_git' | 37 checkout_type = 'gclient_git' |
| 36 spec_type = '%s_spec' % checkout_type | 38 spec_type = '%s_spec' % checkout_type |
| 37 return { | 39 return { |
| 38 'type': checkout_type, | 40 'type': checkout_type, |
| 39 spec_type: spec | 41 spec_type: spec |
| 40 } | 42 } |
| 41 | 43 |
| 42 @staticmethod | 44 @staticmethod |
| 43 def expected_root(_props): | 45 def expected_root(_props): |
| 44 return 'src' | 46 return 'src' |
| 45 | 47 |
| 46 | 48 |
| 47 def main(argv=None): | 49 def main(argv=None): |
| 48 return Chromium().handle_args(argv) | 50 return Chromium().handle_args(argv) |
| 49 | 51 |
| 50 | 52 |
| 51 if __name__ == '__main__': | 53 if __name__ == '__main__': |
| 52 sys.exit(main(sys.argv)) | 54 sys.exit(main(sys.argv)) |
| OLD | NEW |