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

Unified Diff: client/common_lib/base_packages.py

Issue 4823005: Merge remote branch 'cros/upstream' into tempbranch (Closed) Base URL: http://git.chromium.org/git/autotest.git@master
Patch Set: patch Created 10 years, 1 month 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 | « client/common_lib/autotemp.py ('k') | client/common_lib/boottool.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/common_lib/base_packages.py
diff --git a/client/common_lib/base_packages.py b/client/common_lib/base_packages.py
index 3c65f30bd548b79f07368d543bd59e221653212b..feb0d315e5d3b8e4f2e74fdb7c823519fcbc6f3f 100644
--- a/client/common_lib/base_packages.py
+++ b/client/common_lib/base_packages.py
@@ -119,14 +119,13 @@ class HttpFetcher(RepositoryFetcher):
dest_file_path = self.run_command(mktemp).stdout.strip()
try:
- # build up a wget command using the server name
- server_name = urlparse.urlparse(self.url)[1]
- http_cmd = self.wget_cmd_pattern % (server_name, dest_file_path)
+ # build up a wget command
+ http_cmd = self.wget_cmd_pattern % (self.url, dest_file_path)
try:
self.run_command(http_cmd, _run_command_dargs={'timeout': 30})
except Exception, e:
msg = 'HTTP test failed, unable to contact %s: %s'
- raise error.PackageFetchError(msg % (server_name, e))
+ raise error.PackageFetchError(msg % (self.url, e))
finally:
self.run_command('rm -rf %s' % dest_file_path)
« no previous file with comments | « client/common_lib/autotemp.py ('k') | client/common_lib/boottool.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698