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: Make it easier to test one or more existing TLPs
Date Thu, 27 Apr 2017 09:45:37 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  76ee8c0   Make it easier to test one or more existing TLPs
76ee8c0 is described below

commit 76ee8c0259b6cef3ae31ce3dc3b9f2e8a3914e9e
Author: Sebb <sebb@apache.org>
AuthorDate: Thu Apr 27 10:45:34 2017 +0100

    Make it easier to test one or more existing TLPs
---
 tools/site-check.rb | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/tools/site-check.rb b/tools/site-check.rb
index 2052589..171e021 100755
--- a/tools/site-check.rb
+++ b/tools/site-check.rb
@@ -86,7 +86,8 @@ end
 
 results = {}
 
-if ARGV.length == 2
+# Parse a single site given its URL
+if ARGV.length == 2 and ARGV.first =~ /^https?:/
   site = ARGV.shift
   name = ARGV.shift
   results[name] = parse(site, name)
@@ -97,7 +98,11 @@ else
   
   committees.sort_by {|committee| committee.name}.each do |committee|
     next unless committee.site
-  
+    # if parameters specified, parse only those names
+    if ARGV.length > 0
+      next unless ARGV.include? committee.name
+    end
+
     # fetch, parse committee site
     results[committee.name] = parse(committee.site, committee.display_name)
   end

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message