Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: dart/tools/get_archive.py

Issue 189833004: Reland roll of gsutil, fix up the import of the boto library (it is now third_party) (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | deps/all.deps/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 6
7 # Gets or updates a content shell (a nearly headless build of chrome). This is 7 # Gets or updates a content shell (a nearly headless build of chrome). This is
8 # used for running browser tests of client applications. 8 # used for running browser tests of client applications.
9 9
10 import json 10 import json
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 SDK_VERSION = os.path.join(SDK_DIR, 'LAST_VERSION') 48 SDK_VERSION = os.path.join(SDK_DIR, 'LAST_VERSION')
49 SDK_LATEST_PATTERN = 'gs://dart-archive/channels/dev/raw/latest/VERSION' 49 SDK_LATEST_PATTERN = 'gs://dart-archive/channels/dev/raw/latest/VERSION'
50 # TODO(efortuna): Once the x64 VM also is optimized, select the version 50 # TODO(efortuna): Once the x64 VM also is optimized, select the version
51 # based on whether we are running on a 32-bit or 64-bit system. 51 # based on whether we are running on a 32-bit or 64-bit system.
52 SDK_PERMANENT = ('gs://dart-archive/channels/dev/raw/%(version_num)s/sdk/' + 52 SDK_PERMANENT = ('gs://dart-archive/channels/dev/raw/%(version_num)s/sdk/' +
53 'dartsdk-%(osname)s-ia32-release.zip') 53 'dartsdk-%(osname)s-ia32-release.zip')
54 54
55 # Dictionary storing the earliest revision of each download we have stored. 55 # Dictionary storing the earliest revision of each download we have stored.
56 LAST_VALID = {'dartium': 4285, 'chromedriver': 7823, 'sdk': 9761, 'drt': 5342} 56 LAST_VALID = {'dartium': 4285, 'chromedriver': 7823, 'sdk': 9761, 'drt': 5342}
57 57
58 sys.path.append(os.path.join(GSUTIL_DIR, 'boto')) 58 sys.path.append(os.path.join(GSUTIL_DIR, 'third_party', 'boto'))
59 import boto 59 import boto
60 60
61 61
62 def ExecuteCommand(*cmd): 62 def ExecuteCommand(*cmd):
63 """Execute a command in a subprocess.""" 63 """Execute a command in a subprocess."""
64 pipe = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) 64 pipe = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
65 output, error = pipe.communicate() 65 output, error = pipe.communicate()
66 return pipe.returncode, output 66 return pipe.returncode, output
67 67
68 68
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 GetDartiumRevision('content_shell', bot, DRT_DIR, DRT_VERSION, 347 GetDartiumRevision('content_shell', bot, DRT_DIR, DRT_VERSION,
348 DRT_LATEST_PATTERN, DRT_PERMANENT_PATTERN, 348 DRT_LATEST_PATTERN, DRT_PERMANENT_PATTERN,
349 args.revision) 349 args.revision)
350 CopyDrtFont(DRT_DIR) 350 CopyDrtFont(DRT_DIR)
351 else: 351 else:
352 print ('Please specify the target you wish to download from Google Storage ' 352 print ('Please specify the target you wish to download from Google Storage '
353 '("drt", "dartium", "chromedriver", or "sdk")') 353 '("drt", "dartium", "chromedriver", or "sdk")')
354 354
355 if __name__ == '__main__': 355 if __name__ == '__main__':
356 sys.exit(main()) 356 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | deps/all.deps/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698