| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 """Pull latest revisions of a W3C test repo and make a local commit.""" | 5 """Pull latest revisions of a W3C test repo and make a local commit.""" |
| 6 | 6 |
| 7 import argparse | 7 import argparse |
| 8 import re | 8 import re |
| 9 | 9 |
| 10 from webkitpy.common.webkit_finder import WebKitFinder | 10 from webkitpy.common.webkit_finder import WebKitFinder |
| 11 | 11 |
| 12 | 12 |
| 13 class DepsUpdater(object): | 13 class DepsUpdater(object): |
| 14 |
| 14 def __init__(self, host): | 15 def __init__(self, host): |
| 15 self.host = host | 16 self.host = host |
| 16 self.executive = host.executive | 17 self.executive = host.executive |
| 17 self.fs = host.filesystem | 18 self.fs = host.filesystem |
| 18 self.finder = WebKitFinder(self.fs) | 19 self.finder = WebKitFinder(self.fs) |
| 19 self.verbose = False | 20 self.verbose = False |
| 20 self.allow_local_blink_commits = False | 21 self.allow_local_blink_commits = False |
| 21 self.keep_w3c_repos_around = False | 22 self.keep_w3c_repos_around = False |
| 22 | 23 |
| 23 def main(self, argv=None): | 24 def main(self, argv=None): |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 dest = self.path_from_webkit_base(*comps) | 199 dest = self.path_from_webkit_base(*comps) |
| 199 if self.verbose: | 200 if self.verbose: |
| 200 self.print_('rm -fr %s' % dest) | 201 self.print_('rm -fr %s' % dest) |
| 201 self.fs.rmtree(dest) | 202 self.fs.rmtree(dest) |
| 202 | 203 |
| 203 def path_from_webkit_base(self, *comps): | 204 def path_from_webkit_base(self, *comps): |
| 204 return self.finder.path_from_webkit_base(*comps) | 205 return self.finder.path_from_webkit_base(*comps) |
| 205 | 206 |
| 206 def print_(self, msg): | 207 def print_(self, msg): |
| 207 self.host.print_(msg) | 208 self.host.print_(msg) |
| OLD | NEW |