| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2012, 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 import hashlib | 7 import hashlib |
| 8 import imp | 8 import imp |
| 9 import os | 9 import os |
| 10 import subprocess | 10 import subprocess |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 /{raw,signed,release}/{revision,latest}/ | 70 /{raw,signed,release}/{revision,latest}/ |
| 71 | 71 |
| 72 Under every base path, the following structure is used: | 72 Under every base path, the following structure is used: |
| 73 - /VERSION | 73 - /VERSION |
| 74 - /api-docs/dart-api-docs.zip | 74 - /api-docs/dart-api-docs.zip |
| 75 - /dartium/{chromedriver,content_shell,dartium} | 75 - /dartium/{chromedriver,content_shell,dartium} |
| 76 -{linux,macos,windows}-{ia32,x64}-release.zip | 76 -{linux,macos,windows}-{ia32,x64}-release.zip |
| 77 - /sdk/dartsdk-{linux,macos,windows}-{ia32,x64}-release.zip | 77 - /sdk/dartsdk-{linux,macos,windows}-{ia32,x64}-release.zip |
| 78 - /editor/darteditor-{linux,macos,windows}-{ia32,x64}.zip | 78 - /editor/darteditor-{linux,macos,windows}-{ia32,x64}.zip |
| 79 - /editor/darteditor-installer-macos-{ia32,x64}.dmg | 79 - /editor/darteditor-installer-macos-{ia32,x64}.dmg |
| 80 - /editor/darteditor-installer-windows-{ia32,x64}.msi |
| 80 - /editor-eclipse-update | 81 - /editor-eclipse-update |
| 81 /{index.html,features/,plugins/,artifacts.jar,content.jar} | 82 /{index.html,features/,plugins/,artifacts.jar,content.jar} |
| 82 """ | 83 """ |
| 83 def __init__(self, channel=Channel.BLEEDING_EDGE, | 84 def __init__(self, channel=Channel.BLEEDING_EDGE, |
| 84 release_type=ReleaseType.RAW): | 85 release_type=ReleaseType.RAW): |
| 85 assert channel in Channel.ALL_CHANNELS | 86 assert channel in Channel.ALL_CHANNELS |
| 86 assert release_type in ReleaseType.ALL_TYPES | 87 assert release_type in ReleaseType.ALL_TYPES |
| 87 | 88 |
| 88 self.channel = channel | 89 self.channel = channel |
| 89 self.release_type = release_type | 90 self.release_type = release_type |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 if not mangled_filename: | 260 if not mangled_filename: |
| 260 mangled_filename = os.path.basename(filename) | 261 mangled_filename = os.path.basename(filename) |
| 261 | 262 |
| 262 checksum = CalculateChecksum(filename) | 263 checksum = CalculateChecksum(filename) |
| 263 checksum_filename = '%s.md5sum' % filename | 264 checksum_filename = '%s.md5sum' % filename |
| 264 | 265 |
| 265 with open(checksum_filename, 'w') as f: | 266 with open(checksum_filename, 'w') as f: |
| 266 f.write('%s *%s' % (checksum, mangled_filename)) | 267 f.write('%s *%s' % (checksum, mangled_filename)) |
| 267 | 268 |
| 268 return checksum_filename | 269 return checksum_filename |
| OLD | NEW |