[Pkg-privacy-commits] [torbrowser-launcher] 144/476: fixed indenting

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 13:21:31 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 60b1df0d869cf81a8fad01bc9b46a3f2592f8249
Author: Micah Lee <micahflee at riseup.net>
Date:   Sun Jun 16 11:07:19 2013 -0700

    fixed indenting
---
 torbrowser-launcher | 72 ++++++++++++++++++++++++++---------------------------
 1 file changed, 36 insertions(+), 36 deletions(-)

diff --git a/torbrowser-launcher b/torbrowser-launcher
index 2806aa3..0771df0 100755
--- a/torbrowser-launcher
+++ b/torbrowser-launcher
@@ -590,43 +590,43 @@ class TBLLauncher:
 
     # download or run TBB
     def start_launcher(self):
-      # is TBB already installed?
-      start = self.common.paths['tbb'][self.common.settings['preferred']]['start']
-      if os.path.isfile(start) and os.access(start, os.X_OK):
-        if self.common.settings['installed_version'][self.common.settings['preferred']] == self.common.settings['latest_version'][self.common.settings['preferred']]:
-          # current version of tbb is installed, launch it
-          self.run(False)
-          self.launch_gui = False
-        elif self.common.settings['installed_version'][self.common.settings['preferred']] < self.common.settings['latest_version'][self.common.settings['preferred']]:
-          # there is a tbb upgrade available
-          self.set_gui('task', _("Your Tor Browser is out of date."), 
-            ['download_tarball_sig', 
-             'download_tarball', 
-             'verify', 
-             'extract', 
-             'run'])
+        # is TBB already installed?
+        start = self.common.paths['tbb'][self.common.settings['preferred']]['start']
+        if os.path.isfile(start) and os.access(start, os.X_OK):
+            if self.common.settings['installed_version'][self.common.settings['preferred']] == self.common.settings['latest_version'][self.common.settings['preferred']]:
+                # current version of tbb is installed, launch it
+                self.run(False)
+                self.launch_gui = False
+            elif self.common.settings['installed_version'][self.common.settings['preferred']] < self.common.settings['latest_version'][self.common.settings['preferred']]:
+                # there is a tbb upgrade available
+                self.set_gui('task', _("Your Tor Browser is out of date."), 
+                    ['download_tarball_sig', 
+                     'download_tarball', 
+                     'verify', 
+                     'extract', 
+                     'run'])
+            else:
+                # for some reason the installed tbb is newer than the current version?
+                self.set_gui('error', _("Something is wrong. The version of Tor Browser Bundle you have installed is newer than the current version?"), [])
+
+        # not installed
         else:
-          # for some reason the installed tbb is newer than the current version?
-          self.set_gui('error', _("Something is wrong. The version of Tor Browser Bundle you have installed is newer than the current version?"), [])
-
-      # not installed
-      else:
-          # are the tarball and sig already downloaded?
-          if os.path.isfile(self.common.paths['tarball_file']) and os.path.isfile(self.common.paths['tarball_sig_file']):
-              # start the gui with verify
-              self.set_gui('task', _("Installing Tor Browser."), 
-                  ['verify', 
-                   'extract', 
-                   'run'])
-
-          # first run
-          else:
-              self.set_gui('task', _("Downloading and installing Tor Browser."), 
-                  ['download_tarball_sig', 
-                   'download_tarball', 
-                   'verify', 
-                   'extract', 
-                   'run'])
+            # are the tarball and sig already downloaded?
+            if os.path.isfile(self.common.paths['tarball_file']) and os.path.isfile(self.common.paths['tarball_sig_file']):
+                # start the gui with verify
+                self.set_gui('task', _("Installing Tor Browser."), 
+                    ['verify', 
+                     'extract', 
+                     'run'])
+
+            # first run
+            else:
+                self.set_gui('task', _("Downloading and installing Tor Browser."), 
+                    ['download_tarball_sig', 
+                     'download_tarball', 
+                     'verify', 
+                     'extract', 
+                     'run'])
    
     # there are different GUIs that might appear, this sets which one we want
     def set_gui(self, gui, message, tasks, autostart=True):

-- 
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