[Pkg-anonymity-tools] [torbrowser-launcher] 11/16: must not strip the "-Linux" from the latest version number if it isnt there already (#132)
Ulrike Uhlig
u-guest at moszumanska.debian.org
Thu Oct 2 17:06:09 UTC 2014
This is an automated email from the git hooks/post-receive script.
u-guest pushed a commit to annotated tag v0.1.5
in repository torbrowser-launcher.
commit 97ccbd3f8e44ab40dca13608c9d50108597cfff9
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