OLD | NEW |
(Empty) | |
| 1 from autotest_lib.client.common_lib import base_packages |
| 2 |
| 3 |
| 4 class SiteHttpFetcher(base_packages.HttpFetcher): |
| 5 # shortcut quick http test for now since our dev server does not support |
| 6 # this operation. |
| 7 def _quick_http_test(self): |
| 8 return |
| 9 |
| 10 |
| 11 class SitePackageManager(base_packages.BasePackageManager): |
| 12 def get_fetcher(self, url): |
| 13 if url.startswith('http://'): |
| 14 return SiteHttpFetcher(self, url) |
| 15 else: |
| 16 return super(SitePackageManager, self).get_fetcher(url) |
OLD | NEW |