Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Unified Diff: client/common_lib/site_packages.py

Issue 6883099: Enable autotest client package fetching based on updated image. (Closed) Base URL: ssh://gitrw.chromium.org:9222/autotest.git@master
Patch Set: patch Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | server/site_autotest.py » ('j') | server/site_autotest.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5a1cdd614fdf5a2280edb510e0e74f04315f7c96
--- /dev/null
+++ b/client/common_lib/site_packages.py
@@ -0,0 +1,17 @@
+import logging, os
DaleCurtis 2011/04/21 20:35:14 logging,os are still unused.
+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 base_packages.BasePackageManager.get_fetcher(self, url)
« no previous file with comments | « no previous file | server/site_autotest.py » ('j') | server/site_autotest.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698