Use a more official download URL

The requests to vscode-update.azurewebsites.net redirect permanently
to the new location, so use it directly.
This commit is contained in:
Mikhail Zabaluev
2019-07-04 14:13:17 +03:00
parent 58e43ac3c1
commit a744d36826
+1 -1
View File
@@ -28,7 +28,7 @@ ARCHES = {'x64': -2, 'ia32': -1}
for arch, pos in ARCHES.items():
source_entry = data['modules'][-1]['sources'][pos]
source_entry['url'] = 'https://vscode-update.azurewebsites.net/' + VERSION + '/linux-deb-' + arch + '/stable'
source_entry['url'] = 'https://update.code.visualstudio.com/' + VERSION + '/linux-deb-' + arch + '/stable'
FILENAME = 'code_' + VERSION + '_' + arch + '.deb'
subprocess.call(['curl', '-R', '-L', '-o', FILENAME, '-C', '-', source_entry['url']])
source_entry['sha256'] = subprocess.check_output(['sha256sum', FILENAME]).decode("utf-8").split(None, 1)[0]