Package: bzr / 2.6.0+bzr6595-6+deb8u1

24_fix_pycurl_ssl Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: Use localhost rather than 127.0.0.1, as the latter trips up pycurl.
Bug-Debian: https://bugs.debian.org/868966
Bug: https://bugs.launchpad.net/bzr/+bug/1707499
Author: Jelmer Vernooij <jelmer@debian.org>

=== modified file 'bzrlib/tests/http_server.py'
--- a/bzrlib/tests/http_server.py
+++ b/bzrlib/tests/http_server.py
@@ -477,6 +477,7 @@ class HttpServer(test_server.TestingTCPS
         self.logs = []
 
         super(HttpServer, self).start_server()
+        self.host = 'localhost'
         self._http_base_url = '%s://%s:%s/' % (
             self._url_protocol, self.host, self.port)
 
--- a/bzrlib/tests/ssl_certs/create_ssls.py
+++ b/bzrlib/tests/ssl_certs/create_ssls.py
@@ -112,7 +112,7 @@ ssl_params=dict(
     server_locality='LocalHost',
     server_organization='Testing Ltd',
     server_section='https server',
-    server_name='127.0.0.1', # Always accessed under that name
+    server_name='localhost', # Always accessed under that name
     server_email='https_server@locahost',
     server_optional_company_name='',
     )