You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2021/07/22 09:13:57 UTC
[sling-site] branch master updated: SLING-7534 - add sha512 links
for source zip archives only
This is an automated email from the ASF dual-hosted git repository.
bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-site.git
The following commit(s) were added to refs/heads/master by this push:
new 97cb419 SLING-7534 - add sha512 links for source zip archives only
97cb419 is described below
commit 97cb419328246f1e9f8d2a600313eb1627877f94
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Thu Jul 22 11:13:20 2021 +0200
SLING-7534 - add sha512 links for source zip archives only
---
src/main/jbake/templates/downloads.tpl | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/src/main/jbake/templates/downloads.tpl b/src/main/jbake/templates/downloads.tpl
index 0db76ea..716bc3e 100644
--- a/src/main/jbake/templates/downloads.tpl
+++ b/src/main/jbake/templates/downloads.tpl
@@ -318,7 +318,7 @@ def deprecated=[
// ------------------------------------------------------------------------------------------------
// Utilities
// ------------------------------------------------------------------------------------------------
-def downloadLink(label, artifact, version, suffix) {
+def downloadLink(label, artifact, version, suffix, includeSHA512=false) {
def sep = version ? "-" : ""
def path = "sling/${artifact}${sep}${version}${suffix}"
def digestsBase = "https://downloads.apache.org/${path}"
@@ -329,8 +329,10 @@ def downloadLink(label, artifact, version, suffix) {
a(href:"${digestsBase}.asc", "asc")
yield ", "
a(href:"${digestsBase}.sha1", "sha1")
- yield ", "
- a(href:"${digestsBase}.sha512", "sha512")
+ if(includeSHA512) {
+ yield ", "
+ a(href:"${digestsBase}.sha512", "sha512")
+ }
yield(")")
}
newLine()
@@ -370,7 +372,7 @@ def tableHead(String [] headers) {
def sectionHeader(String title) {
h3(title)
div(class:"footnoteLink") {
- yield("Not all sha* links work (")
+ yield("Not all sha* links work for source zip archives, (")
a(href:"https://issues.apache.org/jira/browse/SLING-7534") {
yield "SLING-7534"
}
@@ -457,7 +459,7 @@ layout 'layout/main.tpl', true,
downloadLink("Bundle", artifact, version, "." + extension)
}
td(){
- downloadLink("Source ZIP", artifact, version, "-source-release.zip")
+ downloadLink("Source ZIP", artifact, version, "-source-release.zip", true)
}
}
}
@@ -483,7 +485,7 @@ layout 'layout/main.tpl', true,
downloadLink("Maven Plugin", artifact, version, ".jar")
}
td(){
- downloadLink("Source ZIP", artifact, version, "-source-release.zip")
+ downloadLink("Source ZIP", artifact, version, "-source-release.zip", true)
}
}
}
@@ -509,7 +511,7 @@ layout 'layout/main.tpl', true,
downloadLink("bnd Plugin", artifact, version, ".jar")
}
td(){
- downloadLink("Source ZIP", artifact, version, "-source-release.zip")
+ downloadLink("Source ZIP", artifact, version, "-source-release.zip", true)
}
}
}
@@ -532,7 +534,7 @@ layout 'layout/main.tpl', true,
downloadLink("Bundle", artifact, version, ".jar")
}
td(){
- downloadLink("Source ZIP", artifact, version, "-source-release.zip")
+ downloadLink("Source ZIP", artifact, version, "-source-release.zip", true)
}
}
}