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 platform | 8 import platform |
9 import urllib | 9 import urllib |
10 | 10 |
11 import util | 11 import util |
12 | 12 |
13 CHROME_34_REVISION = '251854' | 13 CHROME_34_REVISION = '251854' |
14 CHROME_35_REVISION = '260135' | 14 CHROME_35_REVISION = '260135' |
15 CHROME_36_REVISION = '269467' | 15 CHROME_36_REVISION = '269696' |
stgao
2014/05/23 16:08:17
269467 was the branched revision, so we need to fi
| |
16 | 16 |
17 _SITE = 'http://commondatastorage.googleapis.com' | 17 _SITE = 'http://commondatastorage.googleapis.com' |
18 | 18 |
19 | 19 |
20 class Site(object): | 20 class Site(object): |
21 CONTINUOUS = _SITE + '/chromium-browser-continuous' | 21 CONTINUOUS = _SITE + '/chromium-browser-continuous' |
22 SNAPSHOT = _SITE + '/chromium-browser-snapshots' | 22 SNAPSHOT = _SITE + '/chromium-browser-snapshots' |
23 | 23 |
24 | 24 |
25 def GetLatestRevision(site=Site.CONTINUOUS): | 25 def GetLatestRevision(site=Site.CONTINUOUS): |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
71 """Returns the name for this platform on the archive site.""" | 71 """Returns the name for this platform on the archive site.""" |
72 if util.IsWindows(): | 72 if util.IsWindows(): |
73 return 'Win' | 73 return 'Win' |
74 elif util.IsMac(): | 74 elif util.IsMac(): |
75 return 'Mac' | 75 return 'Mac' |
76 elif util.IsLinux(): | 76 elif util.IsLinux(): |
77 if platform.architecture()[0] == '64bit': | 77 if platform.architecture()[0] == '64bit': |
78 return 'Linux_x64' | 78 return 'Linux_x64' |
79 else: | 79 else: |
80 return 'Linux' | 80 return 'Linux' |
OLD | NEW |