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 import json | 5 import json |
| 6 # pylint: disable=F0401 | 6 # pylint: disable=F0401 |
| 7 import recipe_util | 7 import recipe_util |
| 8 import sys | 8 import sys |
| 9 | 9 |
| 10 # pylint: disable=W0232 | 10 # pylint: disable=W0232 |
| 11 class Blink(recipe_util.Recipe): | 11 class Blink(recipe_util.Recipe): |
| 12 """Basic Recipe alias for Blink -> Chromium.""" | 12 """Basic Recipe alias for Blink -> Chromium.""" |
| 13 | 13 |
| 14 @staticmethod | 14 @staticmethod |
| 15 def fetch_spec(props): | 15 def fetch_spec(props): |
| 16 submodule_spec = { | 16 new_props = ['--webkit_rev=ToT'] |
| 17 'third_party/WebKit': { | 17 if props.get('anonymous', 'False') != 'True': |
|
Dirk Pranke
2013/04/06 01:45:25
I saw the comment, but clearly at some point this
| |
| 18 'svn_url': 'svn://svn.chromium.org/blink/trunk', | 18 submodule_spec = { |
| 19 'svn_branch': 'trunk', | 19 'third_party/WebKit': { |
| 20 'svn_ref': 'master', | 20 'svn_url': 'svn://svn.chromium.org/blink/trunk', |
| 21 'svn_branch': 'trunk', | |
| 22 'svn_ref': 'master', | |
| 23 } | |
| 21 } | 24 } |
| 22 } | 25 new_props += ['--submodule_git_svn_spec=' + json.dumps(submodule_spec)] |
| 23 return {'alias': { | 26 return {'alias': { |
| 24 'recipe': 'chromium', | 27 'recipe': 'chromium', |
| 25 'props': ['--webkit_rev=ToT', | 28 'props': new_props, |
| 26 '--submodule_git_svn_spec=' + json.dumps(submodule_spec)] | |
| 27 } | 29 } |
| 28 } | 30 } |
| 29 | 31 |
| 30 | 32 |
| 31 def main(argv=None): | 33 def main(argv=None): |
| 32 Blink().handle_args(argv) | 34 Blink().handle_args(argv) |
| 33 | 35 |
| 34 | 36 |
| 35 if __name__ == '__main__': | 37 if __name__ == '__main__': |
| 36 sys.exit(main(sys.argv)) | 38 sys.exit(main(sys.argv)) |
| OLD | NEW |