[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [gettor/master] Ensure failure is declared before referenced
commit 5404ef818317f0c0ceea6a6130f83ccc8d070fd7
Author: Cecylia Bocovich <cohosh@xxxxxxxxxxxxxx>
Date: Thu Jan 23 09:14:15 2020 -0500
Ensure failure is declared before referenced
This fixes a bug where, if there were no errors in uploading binaries,
failure is referenced before it was ever declared.
---
scripts/update_git | 3 +++
1 file changed, 3 insertions(+)
diff --git a/scripts/update_git b/scripts/update_git
index d107491..5808139 100755
--- a/scripts/update_git
+++ b/scripts/update_git
@@ -109,6 +109,9 @@ def upload_files(remotes):
for remote in remotes:
remote.upload(filename, arch)
os.remove(filename)
+
+ failure = False
+
#Retry failed uploads
for url in failed_uploads:
filename = url.split('/')[-1]
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits