| 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 sys | 9 import sys |
| 10 import urllib | 10 import urllib |
| 11 | 11 |
| 12 _THIS_DIR = os.path.abspath(os.path.dirname(__file__)) | 12 _THIS_DIR = os.path.abspath(os.path.dirname(__file__)) |
| 13 sys.path.insert(0, os.path.join(_THIS_DIR, os.pardir, 'pylib')) | 13 sys.path.insert(0, os.path.join(_THIS_DIR, os.pardir, 'pylib')) |
| 14 | 14 |
| 15 from common import util | 15 from common import util |
| 16 | 16 |
| 17 CHROME_26_REVISION = '181664' | |
| 18 CHROME_27_REVISION = '190466' | 17 CHROME_27_REVISION = '190466' |
| 19 CHROME_28_REVISION = '198276' | 18 CHROME_28_REVISION = '198276' |
| 20 | 19 |
| 21 _SITE = 'http://commondatastorage.googleapis.com' | 20 _SITE = 'http://commondatastorage.googleapis.com' |
| 22 | 21 |
| 23 | 22 |
| 24 class Site(object): | 23 class Site(object): |
| 25 CONTINUOUS = _SITE + '/chromium-browser-continuous' | 24 CONTINUOUS = _SITE + '/chromium-browser-continuous' |
| 26 SNAPSHOT = _SITE + '/chromium-browser-snapshots' | 25 SNAPSHOT = _SITE + '/chromium-browser-snapshots' |
| 27 | 26 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 """Returns the name for this platform on the archive site.""" | 74 """Returns the name for this platform on the archive site.""" |
| 76 if util.IsWindows(): | 75 if util.IsWindows(): |
| 77 return 'Win' | 76 return 'Win' |
| 78 elif util.IsMac(): | 77 elif util.IsMac(): |
| 79 return 'Mac' | 78 return 'Mac' |
| 80 elif util.IsLinux(): | 79 elif util.IsLinux(): |
| 81 if platform.architecture()[0] == '64bit': | 80 if platform.architecture()[0] == '64bit': |
| 82 return 'Linux_x64' | 81 return 'Linux_x64' |
| 83 else: | 82 else: |
| 84 return 'Linux' | 83 return 'Linux' |
| OLD | NEW |