Make 0.x and 1.x indexes still work with get-bwc-version

This commit is contained in:
Ryan Ernst 2015-08-27 10:19:59 -07:00
parent 448d3498b1
commit 38b8f20cc5
1 changed files with 2 additions and 0 deletions

View File

@ -64,6 +64,8 @@ def main():
if c.version == '1.2.0':
# 1.2.0 was pulled from download.elasticsearch.org because of routing bug:
url = 'http://central.maven.org/maven2/org/elasticsearch/elasticsearch/1.2.0/%s' % filename
elif c.version.startswith('0.') or c.version.startswith('1.'):
url = 'https://download.elasticsearch.org/elasticsearch/elasticsearch/%s' % filename
else:
url = 'http://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/%s/%s' % (c.version, filename)
print('Downloading %s' % url)