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 platform | 10 import platform |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 | 138 |
139 def dartium_directory(self, revision): | 139 def dartium_directory(self, revision): |
140 return self._variant_directory('dartium', revision) | 140 return self._variant_directory('dartium', revision) |
141 | 141 |
142 def dartium_android_directory(self, revision): | 142 def dartium_android_directory(self, revision): |
143 return self._variant_directory('dartium_android', revision) | 143 return self._variant_directory('dartium_android', revision) |
144 | 144 |
145 def sdk_directory(self, revision): | 145 def sdk_directory(self, revision): |
146 return self._variant_directory('sdk', revision) | 146 return self._variant_directory('sdk', revision) |
147 | 147 |
148 def linux_packages_directory(self, revision, linux_system): | 148 def linux_packages_directory(self, revision): |
149 return '/'.join([self._variant_directory('linux_packages', revision), | 149 return '/'.join([self._variant_directory('linux_packages', revision)]) |
150 linux_system]) | |
151 | 150 |
152 def src_directory(self, revision): | 151 def src_directory(self, revision): |
153 return self._variant_directory('src', revision) | 152 return self._variant_directory('src', revision) |
154 | 153 |
155 def editor_directory(self, revision): | 154 def editor_directory(self, revision): |
156 return self._variant_directory('editor', revision) | 155 return self._variant_directory('editor', revision) |
157 | 156 |
158 def editor_eclipse_update_directory(self, revision): | 157 def editor_eclipse_update_directory(self, revision): |
159 return self._variant_directory('editor-eclipse-update', revision) | 158 return self._variant_directory('editor-eclipse-update', revision) |
160 | 159 |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 print "SHA256 checksum of %s is %s" % (filename, checksum) | 369 print "SHA256 checksum of %s is %s" % (filename, checksum) |
371 return checksum_filename | 370 return checksum_filename |
372 | 371 |
373 def GetChannelFromName(name): | 372 def GetChannelFromName(name): |
374 """Get the channel from the name. Bleeding edge builders don't | 373 """Get the channel from the name. Bleeding edge builders don't |
375 have a suffix.""" | 374 have a suffix.""" |
376 channel_name = string.split(name, '-').pop() | 375 channel_name = string.split(name, '-').pop() |
377 if channel_name in Channel.ALL_CHANNELS: | 376 if channel_name in Channel.ALL_CHANNELS: |
378 return channel_name | 377 return channel_name |
379 return Channel.BLEEDING_EDGE | 378 return Channel.BLEEDING_EDGE |
OLD | NEW |