Index: client/common_lib/site_packages.py |
diff --git a/client/common_lib/site_packages.py b/client/common_lib/site_packages.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c9cb75bd0afe1c32aa9f97990569c89d240c6dea |
--- /dev/null |
+++ b/client/common_lib/site_packages.py |
@@ -0,0 +1,16 @@ |
+from autotest_lib.client.common_lib import base_packages |
+ |
+ |
+class SiteHttpFetcher(base_packages.HttpFetcher): |
+ # shortcut quick http test for now since our dev server does not support |
+ # this operation. |
+ def _quick_http_test(self): |
+ return |
+ |
+ |
+class SitePackageManager(base_packages.BasePackageManager): |
+ def get_fetcher(self, url): |
+ if url.startswith('http://'): |
+ return SiteHttpFetcher(self, url) |
+ else: |
+ return super(SitePackageManager, self).get_fetcher(url) |