[Pkg-anonymity-tools] [torbrowser-launcher] 11/48: must not strip the "-Linux" from the latest version number if it isnt there already (#132)

Holger Levsen holger at moszumanska.debian.org
Wed Feb 4 22:15:37 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository torbrowser-launcher.

commit d38cbd3e44fd71d665a0c3f89db206c3ad703699
Author: Micah Lee <micah at micahflee.com>
Date:   Tue Sep 30 23:26:01 2014 +0000

    must not strip the "-Linux" from the latest version number if it isnt there already (#132)
---
 torbrowser_launcher/launcher.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/torbrowser_launcher/launcher.py b/torbrowser_launcher/launcher.py
index 619416a..7bb7ea1 100644
--- a/torbrowser_launcher/launcher.py
+++ b/torbrowser_launcher/launcher.py
@@ -523,7 +523,11 @@ class Launcher:
                     latest = versions.pop()
 
             if latest:
-                self.common.settings['latest_version'] = latest[:-len('-Linux')]
+                latest = str(latest)
+                if latest.endswith('-Linux'):
+                    latest = latest.rstrip('-Linux')
+
+                self.common.settings['latest_version'] = latest
                 self.common.settings['last_update_check_timestamp'] = int(time.time())
                 self.common.settings['check_for_updates'] = False
                 self.common.save_settings()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/torbrowser-launcher.git



More information about the Pkg-anonymity-tools mailing list