[Pkg-privacy-commits] [torbrowser-launcher] 168/476: fixes #58, at least for TBB 3.0+

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 13:21:33 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 749f5283b38830448ff97f32f3f255ba78ea8786
Author: Micah Lee <micah at micahflee.com>
Date:   Sat Nov 9 17:40:53 2013 -0800

    fixes #58, at least for TBB 3.0+
---
 torbrowser-launcher | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/torbrowser-launcher b/torbrowser-launcher
index 8e730b2..03f15b1 100755
--- a/torbrowser-launcher
+++ b/torbrowser-launcher
@@ -199,6 +199,7 @@ class TBLCommon:
                         'vidalia_bin': tbb_data+'/tbb/stable/'+self.architecture+'/tor-browser_'+self.language+'/App/vidalia',
                         'firefox_bin': tbb_data+'/tbb/stable/'+self.architecture+'/tor-browser_'+self.language+'/App/Firefox/firefox',
                         'firefox_profile': tbb_data+'/tbb/stable/'+self.architecture+'/tor-browser_'+self.language+'/Data/profile',
+                        'versions': tbb_data+'/tbb/stable/'+self.architecture+'/tor-browser_'+self.language+'/sources/versions',
                     },
                     'alpha': {
                         'dir': tbb_data+'/tbb/alpha/'+self.architecture,
@@ -206,6 +207,7 @@ class TBLCommon:
                         'vidalia_bin': tbb_data+'/tbb/alpha/'+self.architecture+'/tor-browser_'+self.language+'/App/vidalia',
                         'firefox_bin': tbb_data+'/tbb/alpha/'+self.architecture+'/tor-browser_'+self.language+'/App/Firefox/firefox',
                         'firefox_profile': tbb_data+'/tbb/alpha/'+self.architecture+'/tor-browser_'+self.language+'/Data/profile',
+                        'versions': tbb_data+'/tbb/alpha/'+self.architecture+'/tor-browser_'+self.language+'/sources/versions',
                     }
                 }
             }
@@ -601,6 +603,14 @@ class TBLLauncher:
         latest_version = self.common.settings['latest_version'][self.common.settings['preferred']]
         installed_version = self.common.settings['installed_version'][self.common.settings['preferred']]
 
+        # verify installed version for newer versions of TBB (#58)
+        if installed_version >= '3.0':
+            versions_filename = self.common.paths['tbb'][self.common.settings['preferred']]['versions']
+            if os.path.exists(versions_filename):
+                for line in open(versions_filename):
+                    if 'TORBROWSER_VERSION' in line:
+                        installed_version = line.lstrip('TORBROWSER_VERSION=').strip()
+
         start = self.common.paths['tbb'][self.common.settings['preferred']]['start']
         if os.path.isfile(start) and os.access(start, os.X_OK):
             if installed_version == latest_version:

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