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 46d321aa Option needs to be done earlier
46d321aa is described below

commit 46d321aabd139a6f154b6063d179d97ef0861f50
Author: Sebb <[email protected]>
AuthorDate: Tue Oct 14 16:59:33 2025 +0100

    Option needs to be done earlier
---
 tools/site-scan.rb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tools/site-scan.rb b/tools/site-scan.rb
index 03bbe203..86d9c5d4 100755
--- a/tools/site-scan.rb
+++ b/tools/site-scan.rb
@@ -343,6 +343,8 @@ $cache = Cache.new(dir: ENV['SITE_SCAN_CACHE'] || 
'site-scan')
 $verbose = ARGV.delete '--verbose'
 $saveparse = ARGV.delete '--saveparse'
 $skipresourcecheck = ARGV.delete '--noresource'
+$podling = ARGV.delete('--podling')
+
 sites_checked = 0
 sites_failed = 0
 
@@ -359,11 +361,10 @@ puts "Started: #{Time.now}"  # must agree with site-scan 
monitor
 # If additional projname|podlingname are provided, only scans those sites
 if ARGV.first =~ /^https?:\/\/\w/
   # Scan a single URL provided by user
-  podling = ARGV.delete('--podling')
   site = ARGV.shift.dup # needs to be unfrozen
   name = ARGV.shift || site[/\/(\w[^.]*)/, 1].capitalize
   output_projects = ARGV.shift
-  results[name] = parse(name, site, name, podling)
+  results[name] = parse(name, site, name, $podling)
 else
   # Gather output filenames (if any) and scan various projects
   if ARGV.first =~ %r{[./]} # have we a file name?

Reply via email to