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 sys | |
| 5 import json | 6 import json |
|
M-A Ruel
2013/04/29 13:43:04
sorted
| |
| 6 # pylint: disable=F0401 | 7 # pylint: disable=F0401 |
|
M-A Ruel
2013/04/29 13:43:04
same as the other file. And separate stdlib from n
| |
| 7 import recipe_util | 8 import recipe_util |
| 8 import sys | |
| 9 | 9 |
| 10 | |
| 11 # This class doesn't need an __init__ method, so we disable the warning | |
| 10 # pylint: disable=W0232 | 12 # pylint: disable=W0232 |
| 11 class Blink(recipe_util.Recipe): | 13 class Blink(recipe_util.Recipe): |
| 12 """Basic Recipe alias for Blink -> Chromium.""" | 14 """Basic Recipe alias for Blink -> Chromium.""" |
| 13 | 15 |
| 14 @staticmethod | 16 @staticmethod |
| 15 def fetch_spec(props): | 17 def fetch_spec(props): |
| 16 submodule_spec = { | 18 submodule_spec = { |
| 17 'third_party/WebKit': { | 19 'third_party/WebKit': { |
| 18 'svn_url': 'svn://svn.chromium.org/blink/trunk', | 20 'svn_url': 'svn://svn.chromium.org/blink/trunk', |
| 19 'svn_branch': 'trunk', | 21 'svn_branch': 'trunk', |
| 20 'svn_ref': 'master', | 22 'svn_ref': 'master', |
| 21 } | 23 } |
| 22 } | 24 } |
| 23 return {'alias': { | 25 return { |
| 26 'alias': { | |
| 24 'recipe': 'chromium', | 27 'recipe': 'chromium', |
| 25 'props': ['--webkit_rev=ToT', | 28 'props': [ |
| 26 '--submodule_git_svn_spec=' + json.dumps(submodule_spec)] | 29 '--webkit_rev=ToT', |
| 27 } | 30 '--submodule_git_svn_spec=' + json.dumps(submodule_spec), |
| 31 ], | |
| 32 }, | |
| 28 } | 33 } |
| 29 | 34 |
| 30 | 35 |
| 31 def main(argv=None): | 36 def main(argv=None): |
| 32 Blink().handle_args(argv) | 37 return Blink().handle_args(argv) |
| 33 | 38 |
| 34 | 39 |
| 35 if __name__ == '__main__': | 40 if __name__ == '__main__': |
| 36 sys.exit(main(sys.argv)) | 41 sys.exit(main(sys.argv)) |
| OLD | NEW |