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 f2c57ea Detect SNAPSHOT references
f2c57ea is described below
commit f2c57eacc455ad91f04a1dbe19c94ecd89d04fac
Author: Sebb <[email protected]>
AuthorDate: Sat Apr 17 16:38:07 2021 +0100
Detect SNAPSHOT references
---
tools/download_check.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/download_check.rb b/tools/download_check.rb
index 52bc513..cece741 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -378,8 +378,8 @@ def _checkDownloadPage(path, tlp, version)
# 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}"
+ body.scan(%r{[^<>]+?(nightly|snapshot)[^<>]+?}i) do |m|
+ E "Found reference to NIGHTLY or SNAPSHOT builds: #{m.strip}"
end
if body.include? 'dist.apache.org'