Browse Source

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

Ryan Ernst 10 years ago
parent
commit
38b8f20cc5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      dev-tools/get-bwc-version.py

+ 2 - 0
dev-tools/get-bwc-version.py

@@ -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)