[Pkg-privacy-commits] [torbrowser-launcher] 41/476: if verification fails, it can try the download over again
Ximin Luo
infinity0 at moszumanska.debian.org
Sat Aug 22 13:21:21 UTC 2015
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch debian
in repository torbrowser-launcher.
commit 06960426d06b1e618a0cfb977de7015376b40cb1
Author: Micah Lee <micahflee at riseup.net>
Date: Sun Feb 17 18:00:49 2013 -0800
if verification fails, it can try the download over again
---
torbrowser-launcher | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/torbrowser-launcher b/torbrowser-launcher
index 2e04eb0..a31ee44 100755
--- a/torbrowser-launcher
+++ b/torbrowser-launcher
@@ -222,6 +222,10 @@ class TorBrowserLauncher:
elif task == 'run':
print 'Running '+self.paths['file']['start']
self.run()
+
+ elif task == 'start_over':
+ print 'Starting download over again'
+ self.start_over()
def download(self, name, url, path):
@@ -280,7 +284,11 @@ class TorBrowserLauncher:
if 'Good signature' in output:
self.run_task();
else:
- self.label = "Signature verification failed!"
+ self.progressbar.hide()
+ self.label.set_text("SIGNATURE VERIFICATION FAILED!\n\nYou might be under attack, or there might just be a networking problem. Click Start try the download again.")
+ self.gui_tasks = ['start_over']
+ self.gui_task_i = 0
+ self.start_button.set_sensitive(True)
def extract(self):
# initialize the progress bar
@@ -306,6 +314,13 @@ class TorBrowserLauncher:
# redraw gtk
while gtk.events_pending():
gtk.main_iteration(False)
+
+ # start over and download TBB again
+ def start_over(self):
+ self.label.set_text("Downloading Tor Browser Bundle over again.")
+ self.gui_tasks = ['download_tarball', 'download_tarball_sig', 'verify', 'extract', 'run']
+ self.gui_task_i = 0
+ self.start(None)
# exit
def delete_event(self, widget, event, data=None):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/torbrowser-launcher.git
More information about the Pkg-privacy-commits
mailing list