Index: tools/bots/bot_utils.py |
diff --git a/tools/bots/bot_utils.py b/tools/bots/bot_utils.py |
index 53bd1ca4d1cfb47d272e62f113ecb654382de982..1feaf2c136af693a83f85ff4ddff2457d3e39ed9 100644 |
--- a/tools/bots/bot_utils.py |
+++ b/tools/bots/bot_utils.py |
@@ -199,13 +199,11 @@ class GCSNamerApiDocs(object): |
self.channel = channel |
self.bucket = 'gs://dartlang-api-docs' |
- def docs_dirpath(self, revision): |
- assert len('%s' % revision) > 0 |
- return '%s/channels/%s/%s' % (self.bucket, self.channel, revision) |
- |
def dartdocs_dirpath(self, revision): |
assert len('%s' % revision) > 0 |
- return '%s/gen-dartdocs/%s' % (self.bucket, revision) |
+ if self.channel == Channel.BLEEDING_EDGE: |
+ return '%s/gen-dartdocs/builds/%s' % (self.bucket, revision) |
+ return '%s/gen-dartdocs/%s/%s' % (self.bucket, self.channel, revision) |
def docs_latestpath(self, revision): |
assert len('%s' % revision) > 0 |