From e71c1a488851b30ee85ba489d274fe3ecc992057 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 9 Jan 2016 10:53:50 +0530 Subject: [PATCH] Change to using main server download URL for the linux installer --- setup/linux-installer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup/linux-installer.py b/setup/linux-installer.py index 6ffdd534e1..cf0f264352 100644 --- a/setup/linux-installer.py +++ b/setup/linux-installer.py @@ -12,8 +12,8 @@ import ssl, socket from contextlib import closing is64bit = platform.architecture()[0] == '64bit' -url = 'http://code.calibre-ebook.com/dist/linux'+('64' if is64bit else '32') -url = os.environ.get('CALIBRE_INSTALLER_LOCAL_URL', url) +DLURL = 'https://calibre-ebook.com/dist/linux'+('64' if is64bit else '32') +DLURL = os.environ.get('CALIBRE_INSTALLER_LOCAL_URL', DLURL) py3 = sys.version_info[0] > 2 enc = getattr(sys.stdout, 'encoding', 'utf-8') or 'utf-8' if enc.lower() == 'ascii': @@ -273,7 +273,7 @@ def do_download(dest): offset = os.path.getsize(dest) # Get content length and check if range is supported - rq = urllib.urlopen(url) + rq = urllib.urlopen(DLURL) headers = rq.info() size = int(headers['content-length']) accepts_ranges = headers.get('accept-ranges', None) == 'bytes'