mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Change signature downloads to new server
This commit is contained in:
parent
b0497d3c76
commit
0149c98092
@ -13,7 +13,7 @@ from contextlib import closing
|
||||
|
||||
is64bit = platform.architecture()[0] == '64bit'
|
||||
url = 'http://status.calibre-ebook.com/dist/linux'+('64' if is64bit else '32')
|
||||
signature_url = 'http://calibre-ebook.com/downloads/signatures/%s.sha512'
|
||||
signature_url = 'http://code.calibre-ebook.com/signatures/%s.sha512'
|
||||
url = os.environ.get('CALIBRE_INSTALLER_LOCAL_URL', url)
|
||||
py3 = sys.version_info[0] > 2
|
||||
enc = getattr(sys.stdout, 'encoding', 'UTF-8') or 'utf-8'
|
||||
|
@ -59,8 +59,6 @@ def upload_signatures():
|
||||
fname = os.path.basename(installer+'.sha512')
|
||||
with open(os.path.join(tdir, fname), 'wb') as f:
|
||||
f.write(fingerprint)
|
||||
check_call('scp %s/*.sha512 divok:%s/signatures/' % (tdir, DOWNLOADS),
|
||||
shell=True)
|
||||
check_call('scp %s/*.sha512 code:/srv/code/signatures/' % tdir, shell=True)
|
||||
check_call(shlex.split('ssh code chown -R http:http /srv/code/signatures'))
|
||||
shutil.rmtree(tdir)
|
||||
|
Loading…
x
Reference in New Issue
Block a user