From a744d36826271aaf3c517f1cac37e3b647d30839 Mon Sep 17 00:00:00 2001 From: Mikhail Zabaluev Date: Thu, 4 Jul 2019 13:55:17 +0300 Subject: [PATCH] Use a more official download URL The requests to vscode-update.azurewebsites.net redirect permanently to the new location, so use it directly. --- update-vscode-flatpak.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update-vscode-flatpak.py b/update-vscode-flatpak.py index d62bea2..7ed23d0 100755 --- a/update-vscode-flatpak.py +++ b/update-vscode-flatpak.py @@ -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]