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

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') | no next file with comments »
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..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)
« no previous file with comments | « no previous file | server/site_autotest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698