You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by si...@apache.org on 2018/09/26 17:42:27 UTC

[pulsar] branch master updated: Fixed links in download page (#2654)

This is an automated email from the ASF dual-hosted git repository.

sijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new fa44e19  Fixed links in download page (#2654)
fa44e19 is described below

commit fa44e19f2e28922c6bbf609d5d473b911a8de1f5
Author: Matteo Merli <mm...@apache.org>
AuthorDate: Wed Sep 26 13:42:23 2018 -0400

    Fixed links in download page (#2654)
    
    ### Motivation
    
    The existing releases were moved from `incubator/pulsar` to `pulsar` folder in mirrors. There's no need to differentiate between incubator and later releases in terms of paths.
---
 site2/website/pages/en/download.js | 18 +++---------------
 1 file changed, 3 insertions(+), 15 deletions(-)

diff --git a/site2/website/pages/en/download.js b/site2/website/pages/en/download.js
index 55ad70e..6fd3151 100644
--- a/site2/website/pages/en/download.js
+++ b/site2/website/pages/en/download.js
@@ -13,27 +13,15 @@ const siteConfig = require(`${CWD}/siteConfig.js`);
 const releases = require(`${CWD}/releases.json`);
 
 function getLatestArchiveMirrorUrl(version, type) {
-    if (version.includes('incubating')) {
-        return `https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=incubator/pulsar/pulsar-${version}/apache-pulsar-${version}-${type}.tar.gz`
-    } else {
-        return `https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-${version}/apache-pulsar-${version}-${type}.tar.gz`
-    }
+    return `https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-${version}/apache-pulsar-${version}-${type}.tar.gz`
 }
 
 function distUrl(version, type) {
-    if (version.includes('incubating')) {
-        return `https://www.apache.org/dist/incubator/pulsar/pulsar-${version}/apache-pulsar-${version}-${type}.tar.gz`
-    } else {
-        return `https://www.apache.org/dist/pulsar/pulsar-${version}/apache-pulsar-${version}-${type}.tar.gz`
-    }
+    return `https://www.apache.org/dist/pulsar/pulsar-${version}/apache-pulsar-${version}-${type}.tar.gz`
 }
 
 function archiveUrl(version, type) {
-    if (version.includes('incubating')) {
-        return `https://archive.apache.org/dist/incubator/pulsar/pulsar-${version}/apache-pulsar-${version}-${type}.tar.gz`
-    } else {
-        return `https://archive.apache.org/dist/pulsar/pulsar-${version}/apache-pulsar-${version}-${type}.tar.gz`
-    }
+    return `https://archive.apache.org/dist/pulsar/pulsar-${version}/apache-pulsar-${version}-${type}.tar.gz`
 }
 
 class Download extends React.Component {