Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 import logging, os | |
| 2 from autotest_lib.client.common_lib import global_config | |
|
DaleCurtis
2011/04/21 19:16:55
You don't use any of these imports except for base
| |
| 3 from autotest_lib.client.common_lib import utils, base_packages | |
| 4 | |
| 5 | |
| 6 class SiteHttpFetcher(base_packages.HttpFetcher): | |
| 7 # shortcut quick http test for now since our dev server does not support | |
| 8 # this operation. | |
| 9 def _quick_http_test(self): | |
| 10 return | |
| 11 | |
| 12 | |
| 13 class SitePackageManager(base_packages.BasePackageManager): | |
| 14 def get_fetcher(self, url): | |
| 15 if url.startswith('http://'): | |
| 16 return SiteHttpFetcher(self, url) | |
| 17 else: | |
| 18 return base_packages.BasePackageManager.get_fetcher(self, url) | |
| OLD | NEW |