[Pkg-privacy-commits] [torbrowser-launcher] 11/48: must not strip the "-Linux" from the latest version number if it isnt there already (#132)
Ximin Luo
infinity0 at moszumanska.debian.org
Sat Aug 22 13:22:16 UTC 2015
This is an automated email from the git hooks/post-receive script.
infinity0 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/pkg-privacy/packages/torbrowser-launcher.git
More information about the Pkg-privacy-commits
mailing list