Fix regression in downloading custom kernels or other packages.
run_http_test disables repository servers if no checksum file.
The logic for marking repository servers as offline should be avoided when
downloading optional checksum files. As a short-term workaround, totally
disable the optimization of remembering which servers are now offline.
This will need to be fixed later in some more general way.
Low risk, although there may again be redundant long timeouts when some
repo server is indeed inaccessible.
Signed-off-by: Duane Sand <duanes@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@2557 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/common_lib/packages.py b/client/common_lib/packages.py
index ae83a01..2d9634b 100644
--- a/client/common_lib/packages.py
+++ b/client/common_lib/packages.py
@@ -274,7 +274,13 @@
# Get the http server name from the URL
server_name = urlparse.urlparse(source_url)[1]
http_cmd = 'wget -nv %s -O %s' % (server_name, dest_file_path)
- if server_name in BPM._repo_exception:
+
+ # Following repo_exception optimization is disabled for now.
+ # Checksum files are optional. The attempted download of a
+ # missing checksum file erroneously causes the repos to be marked
+ # dead, causing download of its custom kernels to fail.
+ # It also stays dead until Autotest is restarted.
+ if server_name in BPM._repo_exception and False: # <--- TEMP
if BPM._repo_exception[server_name] == BPM.REPO_OK:
# This repository is fine. Simply return
return