You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2021/08/28 13:49:58 UTC

[whimsy] branch master updated: More snapshot docs

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 9833b20  More snapshot docs
9833b20 is described below

commit 9833b2024cfcaff0a4c3d6c1c9caf64f2c77d146
Author: Sebb <se...@apache.org>
AuthorDate: Sat Aug 28 14:49:52 2021 +0100

    More snapshot docs
---
 tools/download_check.rb | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/tools/download_check.rb b/tools/download_check.rb
index 68c531d..4ce123d 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -368,14 +368,14 @@ def _checkDownloadPage(path, tlp, version)
   # This make matching the appropriate match context tricky without traversing the DOM
   body.scan(%r{(^.*?([^<>]+?(nightly|snapshot)[^<>]+?)).*$}i) do |m|
     m.each do |n|
-        if n.size < 160
-            if n =~ %r{-docs-} # snapshot docs (Flink)?
-                W "Found reference to NIGHTLY or SNAPSHOT builds: #{n}"
-            else
-                E "Found reference to NIGHTLY or SNAPSHOT builds: #{n}"
-            end
-            break
+      if n.size < 160
+        if n =~ %r{API |/api/|-docs-} # snapshot docs Datasketches (Flink)?
+          W "Found reference to NIGHTLY or SNAPSHOT docs?: #{n}"
+        else
+          E "Found reference to NIGHTLY or SNAPSHOT builds: #{n}"
         end
+        break
+      end
     end
   end
 
@@ -552,7 +552,7 @@ def _checkDownloadPage(path, tlp, version)
         if not base == t
             if t == 'Download' # MXNet
                 W "Mismatch: #{h} and '#{t}'"
-            elsif not t == 'checksum'
+            elsif not %w{checksum Hash}.include? t
                 E "Mismatch: #{h} and '#{t}'"
             end
         end