OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """Downloads items from the Chromium continuous archive.""" | 5 """Downloads items from the Chromium continuous archive.""" |
6 | 6 |
7 import os | 7 import os |
8 import sys | 8 import sys |
9 import urllib | 9 import urllib |
10 | 10 |
11 _THIS_DIR = os.path.abspath(os.path.dirname(__file__)) | 11 _THIS_DIR = os.path.abspath(os.path.dirname(__file__)) |
12 sys.path.insert(0, os.path.join(_THIS_DIR, os.pardir, 'pylib')) | 12 sys.path.insert(0, os.path.join(_THIS_DIR, os.pardir, 'pylib')) |
13 | 13 |
14 from common import util | 14 from common import util |
15 | 15 |
16 CHROME_26_REVISION = '181664' | 16 CHROME_26_REVISION = '181664' |
| 17 CHROME_27_REVISION = '190466' |
17 | 18 |
18 _SITE = 'http://commondatastorage.googleapis.com/chromium-browser-continuous' | 19 _SITE = 'http://commondatastorage.googleapis.com/chromium-browser-continuous' |
19 | 20 |
20 | 21 |
21 def GetLatestRevision(): | 22 def GetLatestRevision(): |
22 """Returns the latest revision (as a string) available for this platform.""" | 23 """Returns the latest revision (as a string) available for this platform.""" |
23 url = _SITE + '/%s/LAST_CHANGE' | 24 url = _SITE + '/%s/LAST_CHANGE' |
24 return urllib.urlopen(url % _GetDownloadPlatform()).read() | 25 return urllib.urlopen(url % _GetDownloadPlatform()).read() |
25 | 26 |
26 | 27 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 60 |
60 | 61 |
61 def _GetDownloadPlatform(): | 62 def _GetDownloadPlatform(): |
62 """Returns the name for this platform on the archive site.""" | 63 """Returns the name for this platform on the archive site.""" |
63 if util.IsWindows(): | 64 if util.IsWindows(): |
64 return 'Win' | 65 return 'Win' |
65 elif util.IsMac(): | 66 elif util.IsMac(): |
66 return 'Mac' | 67 return 'Mac' |
67 elif util.IsLinux(): | 68 elif util.IsLinux(): |
68 return 'Linux_x64' | 69 return 'Linux_x64' |
OLD | NEW |