| 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_27_REVISION = '190466' | |
| 14 CHROME_28_REVISION = '198276' | 13 CHROME_28_REVISION = '198276' |
| 15 CHROME_29_REVISION = '208261' | 14 CHROME_29_REVISION = '208261' |
| 15 CHROME_30_REVISION = '217281' |
| 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 |