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 a67dd21f Allow for incubator alias hostnames
a67dd21f is described below

commit a67dd21f1c5fbddaf35f24c9cdbdcb2bfee0fdee
Author: Sebb <[email protected]>
AuthorDate: Wed Oct 15 00:09:57 2025 +0100

    Allow for incubator alias hostnames
---
 tools/site-scan.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/site-scan.rb b/tools/site-scan.rb
index 86d9c5d4..76177219 100755
--- a/tools/site-scan.rb
+++ b/tools/site-scan.rb
@@ -166,7 +166,8 @@ def parse(id, site, name, podling=false)
         else
           site2 = URI.join(site,a_href.gsub(' ','%20').gsub('|', '%7C')) # HACK
         end
-        if site2.host == uri.host and site2.path.size > 2
+        # podling sites are reachable via two urls
+        if site2.host.sub('.incubator.', '.') == uri.host.sub('.incubator.', 
'.') and site2.path.size > 2
           subpages[site2.to_s] = a
         end
       rescue StandardError => e

Reply via email to