| 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 string | 10 import string |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 128 |
| 129 def dartium_directory(self, revision): | 129 def dartium_directory(self, revision): |
| 130 return self._variant_directory('dartium', revision) | 130 return self._variant_directory('dartium', revision) |
| 131 | 131 |
| 132 def dartium_android_directory(self, revision): | 132 def dartium_android_directory(self, revision): |
| 133 return self._variant_directory('dartium_android', revision) | 133 return self._variant_directory('dartium_android', revision) |
| 134 | 134 |
| 135 def sdk_directory(self, revision): | 135 def sdk_directory(self, revision): |
| 136 return self._variant_directory('sdk', revision) | 136 return self._variant_directory('sdk', revision) |
| 137 | 137 |
| 138 def linux_packages_directory(self, revision): |
| 139 return self._variant_directory('linux_packages', revision) |
| 140 |
| 141 def src_directory(self, revision): |
| 142 return self._variant_directory('src', revision) |
| 143 |
| 138 def editor_directory(self, revision): | 144 def editor_directory(self, revision): |
| 139 return self._variant_directory('editor', revision) | 145 return self._variant_directory('editor', revision) |
| 140 | 146 |
| 141 def editor_eclipse_update_directory(self, revision): | 147 def editor_eclipse_update_directory(self, revision): |
| 142 return self._variant_directory('editor-eclipse-update', revision) | 148 return self._variant_directory('editor-eclipse-update', revision) |
| 143 | 149 |
| 144 def apidocs_directory(self, revision): | 150 def apidocs_directory(self, revision): |
| 145 return self._variant_directory('api-docs', revision) | 151 return self._variant_directory('api-docs', revision) |
| 146 | 152 |
| 147 def misc_directory(self, revision): | 153 def misc_directory(self, revision): |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 | 320 |
| 315 return checksum_filename | 321 return checksum_filename |
| 316 | 322 |
| 317 def GetChannelFromName(name): | 323 def GetChannelFromName(name): |
| 318 """Get the channel from the name. Bleeding edge builders don't | 324 """Get the channel from the name. Bleeding edge builders don't |
| 319 have a suffix.""" | 325 have a suffix.""" |
| 320 channel_name = string.split(name, '-').pop() | 326 channel_name = string.split(name, '-').pop() |
| 321 if channel_name in Channel.ALL_CHANNELS: | 327 if channel_name in Channel.ALL_CHANNELS: |
| 322 return channel_name | 328 return channel_name |
| 323 return Channel.BLEEDING_EDGE | 329 return Channel.BLEEDING_EDGE |
| OLD | NEW |