whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Support POI
Date Sun, 18 Oct 2020 10:41:53 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new 9dc7f40  Support POI
9dc7f40 is described below

commit 9dc7f40a4187fd3ccfb856cdd7f666034c96a8eb
Author: Sebb <sebb@apache.org>
AuthorDate: Sun Oct 18 11:41:44 2020 +0100

    Support POI
---
 tools/download_check.rb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tools/download_check.rb b/tools/download_check.rb
index e64794e..42a5c6b 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -268,6 +268,7 @@ ALIASES = {
     'sig' => 'asc',
     'pgp' => 'asc',
     'signature' => 'asc',
+    'signature(.asc)' => 'asc',
     'ascsignature' => 'asc',
     'pgpsignature' => 'asc',
     'pgpsignatures' => 'asc',
@@ -280,6 +281,7 @@ ALIASES = {
 # Also want to convert site to TLP
 URL2TLP = Hash.new # URL host to TLP conversion
 URL2TLP['jspwiki-wiki'] = 'jspwiki' # https://jspwiki-wiki.apache.org/Wiki.jsp?page=Downloads
+URL2TLP['xmlbeans'] = 'poi' # xmlbeans now being maintained by POI
 PMCS = Set.new # is this a TLP?
 ASF::Committee.pmcs.map do |p|
     site = p.site[%r{//(.+?)\.apache\.org},1]
@@ -294,6 +296,8 @@ def text2ext(txt)
     # need to strip twice to handle ' [ asc ] '
     # TODO: perhaps just remove all white-space?
     tmp = txt.downcase.strip.sub(%r{^\.},'').sub(%r{^\[(.+)\]$},'\1').sub('-','').sub(/ ?(digest|checksum)/,'').sub(/
\(tar\.gz\)| \(zip\)| /,'').strip
+    return 'sha256' if tmp =~ %r{\A[A-Fa-f0-9]{64}\z}
+    return 'sha512' if tmp =~ %r{\A[A-Fa-f0-9]{128}\z}
     ALIASES[tmp] || tmp
 end
 


Mime
View raw message