Commit ee8d5a85 authored by Cecylia Bocovich's avatar Cecylia Bocovich
Browse files

Exit with non-zero code if some uploads fail

The script will continue with the rest of the uploads but will exit with
a non-zero code so that we'll be notified to upload the missing files
parent 7496d112
......@@ -9,6 +9,8 @@ import subprocess
REPO_NAME = "TheTorProject/gettorbrowser"
failure = False
def delete_old_releases(repo):
for release in repo.get_releases():
......@@ -28,6 +30,7 @@ def upload_files(release):
print("Error: failed to download "+url)
print("Please upload this file manually.")
failure = True
......@@ -43,6 +46,9 @@ def main(token):
release = repo.create_git_release("torbrowser-release", "Tor Browser releases", "These releases were uploaded to be distributed with gettor.")
if failure:
if __name__ == "__main__":
if len(sys.argv) != 2:
Markdown is supported
0% or .
Finish editing this message first!
Please register or to comment