Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: globals/get_browser_versions.py

Issue 5341722020151296: Issue 2628 - Fix stable version of Yandex.Browser listed on the requirements page (Closed)
Patch Set: Created June 3, 2015, 4:24 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: globals/get_browser_versions.py
===================================================================
--- a/globals/get_browser_versions.py
+++ b/globals/get_browser_versions.py
@@ -128,8 +128,14 @@
BROWSERS['opera'] = get_opera_versions
-def get_yandex_version(suffix):
- response = urllib.urlopen('https://api.browser.yandex.ru/update-info/browser/yandex%s/win-yandex.xml' % suffix)
+def get_yandex_version(beta=False):
+ url = 'https://api.browser.yandex.ru/update-info/browser/yandex%s/win-yandex.xml%s'
+ if beta:
+ url %= ('-beta', '')
+ else:
+ url %= ('', '?manual=yes')
+
+ response = urllib.urlopen(url)
try:
doc = minidom.parse(response)
finally:
@@ -141,8 +147,8 @@
def get_yandex_versions():
return {
- 'current': get_yandex_version(''),
- 'unreleased': [get_yandex_version('-beta')]
+ 'current': get_yandex_version(),
+ 'unreleased': [get_yandex_version(beta=True)]
}
BROWSERS['yandex'] = get_yandex_versions
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld