[Pkg-privacy-commits] [torbrowser-launcher] 142/476: always use the latest alpha and latest stable versions
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 84d63289508a49e033d53f38cf7a03bae49fc9ca
Author: Micah Lee <micahflee at riseup.net>
Date: Sun Jun 16 10:58:15 2013 -0700
always use the latest alpha and latest stable versions
---
torbrowser-launcher | 23 ++++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)
diff --git a/torbrowser-launcher b/torbrowser-launcher
index 0d36a48..8875668 100755
--- a/torbrowser-launcher
+++ b/torbrowser-launcher
@@ -939,19 +939,20 @@ class TBLLauncher:
latest_alpha = None
# filter linux versions
- valid_versions = []
+ valid_alphas = []
+ valid_stables = []
for version in versions:
if str(version).find('-Linux') != -1:
- valid_versions.append(str(version))
- valid_versions.sort()
- # find alpha
- for version in valid_versions:
- if version.find('alpha') != -1:
- latest_alpha = version
- valid_versions.remove(latest_alpha)
- # find stable (whatever is left after alpha)
- if len(valid_versions):
- latest_stable = valid_versions[0]
+ if version.find('alpha') != -1:
+ valid_alphas.append(str(version))
+ else:
+ valid_stables.append(str(version))
+ valid_alphas.sort()
+ if len(valid_alphas):
+ latest_alpha = valid_alphas.pop()
+ valid_stables.sort()
+ if len(valid_stables):
+ latest_stable = valid_stables.pop()
if latest_stable or latest_alpha:
if latest_stable:
--
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