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 2017/04/27 10:47:31 UTC
[whimsy] branch master updated: Add verbose option
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 fd02fb6 Add verbose option
fd02fb6 is described below
commit fd02fb69385c87946fc92430daad77987fbe204f
Author: Sebb <se...@apache.org>
AuthorDate: Thu Apr 27 11:47:30 2017 +0100
Add verbose option
---
tools/site-scan.rb | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/site-scan.rb b/tools/site-scan.rb
index 171e021..beb2518 100755
--- a/tools/site-scan.rb
+++ b/tools/site-scan.rb
@@ -64,6 +64,7 @@ def parse(site, name)
end
a_text = a.text.downcase.strip
+ $stderr.puts a_text if $verbose
if a_text =~ /licenses?/ and a['href'].include? 'apache.org'
data[:license] = uri + a['href'].strip
@@ -84,6 +85,8 @@ def parse(site, name)
return data
end
+$verbose = ARGV.delete '--verbose'
+
results = {}
# Parse a single site given its URL
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].