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 8516602  WHIMSY-191 site checker ignore proper license link
8516602 is described below

commit 8516602f7f0ce78f5bf01443dd7ea9d603e2bfd2
Author: Sebb <s...@apache.org>
AuthorDate: Sun Apr 15 12:58:01 2018 +0100

    WHIMSY-191 site checker ignore proper license link
---
 tools/site-scan.rb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tools/site-scan.rb b/tools/site-scan.rb
index 3d03840..45946a1 100755
--- a/tools/site-scan.rb
+++ b/tools/site-scan.rb
@@ -81,9 +81,11 @@ def parse(id, site, name)
 
     # check the link text
     a_text = a.text.downcase.strip
-    $stderr.puts a_text if $verbose
+    $stderr.puts "#{a_text} #{a_href}" if $verbose
 
-    if a_text =~ /licenses?/ and a_href.include? 'apache.org'
+    # Link text is supposed to be just "License" according to:
+    # https://www.apache.org/foundation/marks/pmcs#navigation
+    if a_text =~ /^license$/ and a_href.include? 'apache.org'
       begin
         data[:license] = uri + a_href 
       rescue

-- 
To stop receiving notification emails like this one, please contact
s...@apache.org.

Reply via email to