Commit 1761c654 authored by Łukasz Nowak's avatar Łukasz Nowak

Workaround M2Crypto bug of https redirection.

parent a6982cdf
...@@ -40,6 +40,16 @@ import zc.buildout ...@@ -40,6 +40,16 @@ import zc.buildout
import zc.buildout.download import zc.buildout.download
import zc.buildout.easy_install import zc.buildout.easy_install
# Workaround for https://bugzilla.osafoundation.org/show_bug.cgi?id=13033
# M2Crypto breaks https links
try:
from urllib import URLopener
python_open_https = URLopener.open_https
import M2Crypto
URLopener.open_https = python_open_https
except ImportError:
pass
try: try:
import slapos.libnetworkcache import slapos.libnetworkcache
except ImportError: except ImportError:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment