You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2018/02/28 02:09:17 UTC

[GitHub] sijie closed pull request #1214: Update download pages

sijie closed pull request #1214: Update download pages
URL: https://github.com/apache/bookkeeper/pull/1214
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/site/releases.md b/site/releases.md
index 785c3730f..cf7f64c10 100644
--- a/site/releases.md
+++ b/site/releases.md
@@ -3,13 +3,18 @@ title: Apache BookKeeper&trade; Releases
 layout: community
 ---
 
-{% capture root_url %}https://www.apache.org/dist/bookkeeper{% endcapture %}
-{% capture latest_source_url %}{{ root_url }}/bookkeeper-{{ site.latest_release }}/bookkeeper-{{ site.latest_release }}-src.tar.gz{% endcapture %}
-{% capture latest_bin_url %}{{ root_url }}/bookkeeper-{{ site.latest_release }}/bookkeeper-server-{{ site.latest_release }}-bin.tar.gz{% endcapture %}
-{% capture stable_source_url %}{{ root_url }}/bookkeeper-{{ site.stable_release }}/bookkeeper-{{ site.stable_release }}-src.tar.gz{% endcapture %}
-{% capture stable_bin_url %}{{ root_url }}//bookkeeper-{{ site.stable_release }}/bookkeeper-server-{{ site.stable_release }}-bin.tar.gz{% endcapture %}
+{% capture mirror_url %}https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=bookkeeper{% endcapture %}
+{% capture latest_source_url %}{{ mirror_url }}/bookkeeper-{{ site.latest_release }}/bookkeeper-{{ site.latest_release }}-src.tar.gz{% endcapture %}
+{% capture latest_bin_url %}{{ mirror_url }}/bookkeeper-{{ site.latest_release }}/bookkeeper-server-{{ site.latest_release }}-bin.tar.gz{% endcapture %}
+{% capture dist_url %}https://www.apache.org/dist/bookkeeper{% endcapture %}
+{% capture latest_source_dist_url %}{{ dist_url }}/bookkeeper-{{ site.latest_release }}/bookkeeper-{{ site.latest_release }}-src.tar.gz{% endcapture %}
+{% capture latest_bin_dist_url %}{{ dist_url }}/bookkeeper-{{ site.latest_release }}/bookkeeper-server-{{ site.latest_release }}-bin.tar.gz{% endcapture %}
 
-Version **{{ site.latest_release }}** is the [latest release](#latest-releases-version-{{ site.latest_release | remove: "." }}) of BookKeeper. The current [stable version](#latest-stable-releases-version-{{ site.stable_release | remove: "." }}) is **{{ site.stable_release }}**. Releases can be downloaded from BookKeeper's [Apache mirrors](http://www.apache.org/dyn/closer.cgi/bookkeeper) site or using the instructions below.
+{% capture archive_url %}https://archive.apache.org/dist/bookkeeper{% endcapture %}
+{% capture stable_source_url %}{{ archive_url }}/bookkeeper-{{ site.stable_release }}/bookkeeper-{{ site.stable_release }}-src.tar.gz{% endcapture %}
+{% capture stable_bin_url %}{{ archive_url }}/bookkeeper-{{ site.stable_release }}/bookkeeper-server-{{ site.stable_release }}-bin.tar.gz{% endcapture %}
+
+Version **{{ site.latest_release }}** is the [latest release](#latest-releases-version-{{ site.latest_release | remove: "." }}) of BookKeeper. The current [stable version](#latest-stable-releases-version-{{ site.stable_release | remove: "." }}) is **{{ site.stable_release }}**.
 
 > You can verify your download by following these [procedures](http://www.apache.org/info/verification.html) and using these [KEYS](https://www.apache.org/dist/bookkeeper/KEYS).
 
@@ -19,8 +24,8 @@ If you want to download older, archived releases, they are available in the [Apa
 
 Release | Link | Crypto files
 :-------|:-----|:------------
-Source | [bookkeeper-{{ site.latest_release }}-src.tar.gz]({{ latest_source_url }}) | [asc]({{ latest_source_url }}.asc), [md5]({{ latest_source_url }}.md5), [sha1]({{ latest_source_url }}.sha1)
-Binary | [bookkeeper-server-{{ site.latest_release }}-bin.tar.gz]({{ latest_bin_url }}) | [asc]({{ latest_bin_url }}.asc), [md5]({{ latest_bin_url }}.md5), [sha1]({{ latest_bin_url }}.sha1)
+Source | [bookkeeper-{{ site.latest_release }}-src.tar.gz]({{ latest_source_url }}) | [asc]({{ latest_source_dist_url }}.asc), [md5]({{ latest_source_dist_url }}.md5), [sha1]({{ latest_source_dist_url }}.sha1)
+Binary | [bookkeeper-server-{{ site.latest_release }}-bin.tar.gz]({{ latest_bin_url }}) | [asc]({{ latest_bin_dist_url }}.asc), [md5]({{ latest_bin_dist_url }}.md5), [sha1]({{ latest_bin_dist_url }}.sha1)
 
 ## Latest stable release (version {{ site.stable_release }})
 
@@ -32,7 +37,7 @@ Binary | [bookkeeper-server-{{ site.stable_release }}-bin.tar.gz]({{ stable_bin_
 ## Recent releases
 
 {% for version in site.versions %}{% if version != site.latest_release %}
-{% capture root_url %}https://www.apache.org/dist/bookkeeper/bookkeeper-{{ version }}{% endcapture %}
+{% capture root_url %}https://archive.apache.org/dist/bookkeeper/bookkeeper-{{ version }}{% endcapture %}
 {% capture src_root %}{{ root_url }}/bookkeeper-{{ version }}-src.tar.gz{% endcapture %}
 {% capture bin_root %}{{ root_url }}/bookkeeper-server-{{ version }}-bin.tar.gz{% endcapture %}
 ### Version {{ version }}
@@ -174,4 +179,4 @@ See [BookKeeper 4.1.0 Release Notes]({{ site.baseurl }}archives/docs/r4.1.0/rele
 ### 7 Dec, 2011: release 4.0.0 available
 
 This is the first release of BookKeeper as a subproject of Zookeeper.
-See [BookKeeper 4.0.0 Release Notes]({{ site.baseurl }}archives/docs/r4.0.0/releaseNotes.html) for details.
\ No newline at end of file
+See [BookKeeper 4.0.0 Release Notes]({{ site.baseurl }}archives/docs/r4.0.0/releaseNotes.html) for details.


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services