[gettor/master] Removed beta release from downloads

commit 1487fd8e512982f9a7e82bc2765e1e12abbf6d82 Author: ilv <ilv@users.noreply.github.com> Date: Tue Feb 16 17:26:02 2016 -0300 Removed beta release from downloads --- gettor/http.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/gettor/http.py b/gettor/http.py index 2a63502..081b81c 100644 --- a/gettor/http.py +++ b/gettor/http.py @@ -44,7 +44,6 @@ OS = { RE = { 'os': '(.*)-(\w+)', 'alpha': '\d\.\d(\.\d)*a\d+', - 'beta': '\d\.\d(\.\d)*b\d+', 'stable': '\d\.\d(\.\d)*' } @@ -214,16 +213,11 @@ class HTTP(object): 'alpha': { 'latest_version': '', 'downloads': {} - }, - 'beta': { - 'latest_version': '', - 'downloads': {} } } self.releases = { 'alpha': '%s/latest/alpha' % self.server, - 'beta': '%s/latest/beta' % self.server, 'stable': '%s/latest/stable' % self.server, 'updated_at': strftime("%Y-%m-%d %H:%M:%S", gmtime()) } @@ -237,18 +231,12 @@ class HTTP(object): # we'll use the latest one lv['alpha']['latest_version'] = v - elif re.match(RE['beta'], v): - if v > lv['beta']['latest_version']: - # we'll use the latest one - lv['beta']['latest_version'] = v - elif re.match(RE['stable'], v): if v > lv['stable']['latest_version']: # we'll use the latest one lv['stable']['latest_version'] = v latest_alpha = lv['alpha']['latest_version'] - latest_beta = lv['beta']['latest_version'] latest_stable = lv['stable']['latest_version'] # another iteration to add the links @@ -266,11 +254,6 @@ class HTTP(object): lv['alpha']['downloads'][OS[osys]] = {} self._add_links(lv, 'alpha', version, OS[osys]) - elif latest_beta and version == latest_beta \ - and re.match(RE['beta'], version): - lv['beta']['downloads'][OS[osys]] = {} - self._add_links(lv, 'beta', version, OS[osys]) - elif latest_stable and version == latest_stable \ and re.match(RE['stable'], version): lv['stable']['downloads'][OS[osys]] = {}
participants (1)
-
ilv@torproject.org