| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 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 from slave import recipe_api | 5 from recipe_engine import recipe_api |
| 6 | 6 |
| 7 | 7 |
| 8 class RevisionFallbackChain(object): | 8 class RevisionFallbackChain(object): |
| 9 """Specify that a given project's sync revision follows the fallback chain.""" | 9 """Specify that a given project's sync revision follows the fallback chain.""" |
| 10 def __init__(self, default=None): | 10 def __init__(self, default=None): |
| 11 self._default = default | 11 self._default = default |
| 12 | 12 |
| 13 def resolve(self, properties): | 13 def resolve(self, properties): |
| 14 """Resolve the revision via the revision fallback chain. | 14 """Resolve the revision via the revision fallback chain. |
| 15 | 15 |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 for (path, dir, files) in os.walk(build_path): | 304 for (path, dir, files) in os.walk(build_path): |
| 305 for cur_file in files: | 305 for cur_file in files: |
| 306 if cur_file.endswith('index.lock'): | 306 if cur_file.endswith('index.lock'): |
| 307 path_to_file = os.path.join(path, cur_file) | 307 path_to_file = os.path.join(path, cur_file) |
| 308 print 'deleting %s' % path_to_file | 308 print 'deleting %s' % path_to_file |
| 309 os.remove(path_to_file) | 309 os.remove(path_to_file) |
| 310 """, | 310 """, |
| 311 args=[self.m.path['slave_build']], | 311 args=[self.m.path['slave_build']], |
| 312 infra_step=True, | 312 infra_step=True, |
| 313 ) | 313 ) |
| OLD | NEW |