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/04/14 14:48:48 UTC

[whimsy] branch master updated: Check for nightly references

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 030f84c  Check for nightly references
030f84c is described below

commit 030f84c5b0eb66416c5ae8e576ac2ff4e29e4194
Author: Sebb <se...@apache.org>
AuthorDate: Wed Apr 14 15:48:40 2021 +0100

    Check for nightly references
---
 tools/download_check.rb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tools/download_check.rb b/tools/download_check.rb
index 81aa439..52bc513 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -376,6 +376,12 @@ def _checkDownloadPage(path, tlp, version)
      end
   end
 
+  # Some pages are mainly a single line (e.g. Hop)
+  # This make matching the appropriate match context tricky
+  body.scan(%r{[^<>]+?nightly[^<>]+?}i) do |m|
+    E "Found reference to NIGHTLY builds: #{m.strip}"
+  end
+
   if body.include? 'dist.apache.org'
     E 'Page must not link to dist.apache.org'
   else