| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 from recipe_engine import recipe_api | 5 from recipe_engine import recipe_api |
| 6 | 6 |
| 7 | 7 |
| 8 class ChromiumCheckoutApi(recipe_api.RecipeApi): | 8 class ChromiumCheckoutApi(recipe_api.RecipeApi): |
| 9 def __init__(self, *args, **kwargs): | 9 def __init__(self, *args, **kwargs): |
| 10 super(ChromiumCheckoutApi, self).__init__(*args, **kwargs) | 10 super(ChromiumCheckoutApi, self).__init__(*args, **kwargs) |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 kwargs['cwd'] = self._working_dir | 67 kwargs['cwd'] = self._working_dir |
| 68 | 68 |
| 69 if self.m.platform.is_linux: | 69 if self.m.platform.is_linux: |
| 70 kwargs['env'] = {'GCLIENT_KILL_GIT_FETCH_AFTER': '1200'} # 20 minutes. | 70 kwargs['env'] = {'GCLIENT_KILL_GIT_FETCH_AFTER': '1200'} # 20 minutes. |
| 71 | 71 |
| 72 # Bot Update re-uses the gclient configs. | 72 # Bot Update re-uses the gclient configs. |
| 73 update_step = self.m.bot_update.ensure_checkout( | 73 update_step = self.m.bot_update.ensure_checkout( |
| 74 patch_root=bot_config.get('patch_root'), | 74 patch_root=bot_config.get('patch_root'), |
| 75 root_solution_revision=root_solution_revision, | 75 root_solution_revision=root_solution_revision, |
| 76 clobber=bot_config.get('clobber', False), | 76 clobber=bot_config.get('clobber', False), |
| 77 force=force, **kwargs) | 77 force=force, |
| 78 # TODO(tandrii): remove this temp fix for Angle http://crbug.com/642914. |
| 79 gerrit_rebase_patch_ref=False, |
| 80 **kwargs) |
| 78 assert update_step.json.output['did_run'] | 81 assert update_step.json.output['did_run'] |
| 79 # HACK(dnj): Remove after 'crbug.com/398105' has landed | 82 # HACK(dnj): Remove after 'crbug.com/398105' has landed |
| 80 self.m.chromium.set_build_properties(update_step.json.output['properties']) | 83 self.m.chromium.set_build_properties(update_step.json.output['properties']) |
| 81 | 84 |
| 82 return update_step | 85 return update_step |
| OLD | NEW |