Left: | ||
Right: |
OLD | NEW |
---|---|
1 import re | 1 import re |
2 import os | 2 import os |
3 import sys | 3 import sys |
4 import json | 4 import json |
5 import urllib | 5 import urllib |
6 import errno | 6 import errno |
7 import logging | 7 import logging |
8 import time | 8 import time |
9 from xml.dom import minidom | 9 from xml.dom import minidom |
10 | 10 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
50 doc[key] = match.group(0) | 50 doc[key] = match.group(0) |
51 return doc | 51 return doc |
52 | 52 |
53 | 53 |
54 def get_firefox_versions(): | 54 def get_firefox_versions(): |
55 versions = get_json_versions(FIREFOX_URL) | 55 versions = get_json_versions(FIREFOX_URL) |
56 return { | 56 return { |
57 'current': versions['LATEST_FIREFOX_VERSION'], | 57 'current': versions['LATEST_FIREFOX_VERSION'], |
58 'unreleased': [ | 58 'unreleased': [ |
59 versions['LATEST_FIREFOX_DEVEL_VERSION'], | 59 versions['LATEST_FIREFOX_DEVEL_VERSION'], |
60 versions['FIREFOX_AURORA'], | |
saroyanm
2017/05/02 12:39:22
Why are we removing AURORA ?
I thought the issue
saroyanm
2017/05/02 12:40:20
Nevermind, saw the updated discussion.
| |
61 versions['FIREFOX_NIGHTLY'], | 60 versions['FIREFOX_NIGHTLY'], |
62 ] | 61 ] |
63 } | 62 } |
64 | 63 |
65 | 64 |
66 def get_thunderbird_versions(): | 65 def get_thunderbird_versions(): |
67 tbird_versions = get_json_versions(THUNDERBIRD_URL) | 66 tbird_versions = get_json_versions(THUNDERBIRD_URL) |
68 firefox_versions = get_json_versions(FIREFOX_URL) | 67 firefox_versions = get_json_versions(FIREFOX_URL) |
69 return { | 68 return { |
70 'current': tbird_versions['LATEST_THUNDERBIRD_VERSION'], | 69 'current': tbird_versions['LATEST_THUNDERBIRD_VERSION'], |
71 'unreleased': [ | 70 'unreleased': [ |
72 tbird_versions['LATEST_THUNDERBIRD_DEVEL_VERSION'], | 71 tbird_versions['LATEST_THUNDERBIRD_DEVEL_VERSION'], |
73 tbird_versions['LATEST_THUNDERBIRD_ALPHA_VERSION'], | 72 tbird_versions['LATEST_THUNDERBIRD_ALPHA_VERSION'], |
74 firefox_versions['FIREFOX_NIGHTLY'], | 73 firefox_versions['FIREFOX_NIGHTLY'], |
75 ] | 74 ] |
76 } | 75 } |
77 | 76 |
78 BROWSERS['firefox'] = lambda: get_firefox_versions() | 77 BROWSERS['firefox'] = lambda: get_firefox_versions() |
79 BROWSERS['thunderbird'] = lambda: get_thunderbird_versions() | 78 BROWSERS['thunderbird'] = lambda: get_thunderbird_versions() |
80 | 79 |
81 | 80 |
82 def get_seamonkey_versions(): | 81 def get_seamonkey_versions(): |
83 seamonkey_versions = get_json_versions(SEAMONKEY_URL) | 82 seamonkey_versions = get_json_versions(SEAMONKEY_URL) |
84 versions = { | 83 versions = { |
85 'current': seamonkey_versions['LATEST_SEAMONKEY_VERSION'], | 84 'current': seamonkey_versions['LATEST_SEAMONKEY_VERSION'], |
86 'unreleased': [ | 85 'unreleased': [ |
87 seamonkey_versions['LATEST_SEAMONKEY_MILESTONE_VERSION'], | 86 seamonkey_versions['LATEST_SEAMONKEY_MILESTONE_VERSION'], |
88 seamonkey_versions['LATEST_SEAMONKEY_TESTING_VERSION'], | |
89 seamonkey_versions['LATEST_SEAMONKEY_DEVEL_VERSION'], | 87 seamonkey_versions['LATEST_SEAMONKEY_DEVEL_VERSION'], |
90 ] | 88 ] |
91 } | 89 } |
92 | 90 |
93 return versions | 91 return versions |
94 | 92 |
95 BROWSERS['seamonkey'] = get_seamonkey_versions | 93 BROWSERS['seamonkey'] = get_seamonkey_versions |
96 | 94 |
97 | 95 |
98 def get_chrome_version(manifest): | 96 def get_chrome_version(manifest): |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
243 file.seek(0) | 241 file.seek(0) |
244 json.dump(persistent_cache, file) | 242 json.dump(persistent_cache, file) |
245 file.truncate() | 243 file.truncate() |
246 | 244 |
247 if not versions['previous']: | 245 if not versions['previous']: |
248 logging.warning("Couldn't determine previous browser version, " | 246 logging.warning("Couldn't determine previous browser version, " |
249 'please set %s.previous in %s', browser, filename) | 247 'please set %s.previous in %s', browser, filename) |
250 | 248 |
251 cache[browser] = versions | 249 cache[browser] = versions |
252 return versions | 250 return versions |
OLD | NEW |