diff options
author | Nik Everett <nik9000@gmail.com> | 2016-11-01 16:27:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-01 16:27:46 -0400 |
commit | cf6d3f7ec1b732f415d6c2ed3313feb1b8a8168b (patch) | |
tree | 471d77a440d807a8c3abc9f81bf07b231e90b7f1 /dev-tools | |
parent | b72a708c0d57c88d82bf1ba6a7ad19b058a56f0a (diff) |
Fix get-bwc-version for 5.0.0 (#21249)
5.0.0 is at artifacts.elastic.co.
Diffstat (limited to 'dev-tools')
-rw-r--r-- | dev-tools/get-bwc-version.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dev-tools/get-bwc-version.py b/dev-tools/get-bwc-version.py index 54c559d1dc..4ef9736ea0 100644 --- a/dev-tools/get-bwc-version.py +++ b/dev-tools/get-bwc-version.py @@ -9,7 +9,7 @@ # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on +# software distributed under the License is distributed on # an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, # either express or implied. See the License for the specific # language governing permissions and limitations under the License. @@ -38,7 +38,7 @@ def parse_config(): def main(): c = parse_config() - + if not os.path.exists(c.path): print('Creating %s' % c.path) os.mkdir(c.path) @@ -53,7 +53,7 @@ def main(): shutil.rmtree(version_dir) else: print('Version %s exists at %s' % (c.version, version_dir)) - return + return # before 1.4.0, the zip file contains windows scripts, and tar.gz contained *nix scripts if is_windows: @@ -67,14 +67,14 @@ def main(): 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) + url = 'https://artifacts.elastic.co/downloads/elasticsearch/%s' % filename print('Downloading %s' % url) urllib.request.urlretrieve(url, filename) print('Extracting to %s' % version_dir) if is_windows: archive = zipfile.ZipFile(filename) - archive.extractall() + archive.extractall() else: # for some reason python's tarfile module has trouble with ES tgz? subprocess.check_call('tar -xzf %s' % filename, shell=True) |