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