1from autotest_lib.client.common_lib import base_packages 2 3 4class SiteHttpFetcher(base_packages.HttpFetcher): 5 wget_cmd_pattern = ('wget --connect-timeout=15 --retry-connrefused ' 6 '--wait=5 -nv %s -O %s') 7 8 # shortcut quick http test for now since our dev server does not support 9 # this operation. 10 def _quick_http_test(self): 11 return 12 13 14class SitePackageManager(base_packages.BasePackageManager): 15 def get_fetcher(self, url): 16 if url.startswith('http://'): 17 return SiteHttpFetcher(self, url) 18 else: 19 return super(SitePackageManager, self).get_fetcher(url) 20