From 6d137f400e536e4e6d5acb311b636d28c969a2d7 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sat, 14 Nov 2015 01:03:54 +0200 Subject: [PATCH] Do not use SSL on OSX because for some reason it does not work. --- wraptool.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/wraptool.py b/wraptool.py index 68e98ec79..c37d08803 100755 --- a/wraptool.py +++ b/wraptool.py @@ -18,12 +18,19 @@ import urllib.request, json import sys, os import configparser import shutil +import platform try: + # FIXME for some unknown reason ssl connections + # fail on OSX. Thus fall back to unencrypted + # traffic. + if platform.system().lower() == 'darwin': + import nonexisting import ssl has_ssl = True API_ROOT = 'https://wrapdb.mesonbuild.com/v1/' except ImportError: - print('Warning: ssl not available, traffic not authenticated.') + print('Warning: ssl not available, traffic not authenticated.', + file=sys.stderr) has_ssl = False API_ROOT = 'http://wrapdb.mesonbuild.com/v1/'