Change signature downloads to new server

This commit is contained in:
Kovid Goyal 2015-01-12 04:14:12 +05:30
parent b0497d3c76
commit 0149c98092
2 changed files with 1 additions and 3 deletions

View File

@ -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'

View File

@ -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)