##// END OF EJS Templates
hghave: change ssl check to just check ssl module...
Gregory Szorc -
r28591:f29cab5c default
parent child Browse files
Show More
@@ -341,15 +341,11 b' def has_outer_repo():'
341 return not matchoutput('hg root 2>&1',
341 return not matchoutput('hg root 2>&1',
342 r'abort: no repository found', True)
342 r'abort: no repository found', True)
343
343
344 @check("ssl", ("(python >= 2.6 ssl module and python OpenSSL) "
344 @check("ssl", "ssl module available")
345 "OR python >= 2.7.9 ssl"))
346 def has_ssl():
345 def has_ssl():
347 try:
346 try:
348 import ssl
347 import ssl
349 if getattr(ssl, 'create_default_context', False):
348 ssl.CERT_NONE
350 return True
351 import OpenSSL
352 OpenSSL.SSL.Context
353 return True
349 return True
354 except ImportError:
350 except ImportError:
355 return False
351 return False
General Comments 0
You need to be logged in to leave comments. Login now