in tools/download_check.rb [241:268]
def check_hash_loc(h, tlp)
tlpQE = Regexp.escape(tlp)
tlpQE = "(?:ooo|#{tlpQE})" if tlp == 'openoffice'
tlpQE = "(?:lucene|#{tlpQE})" if tlp == 'solr'
tlpQE = '(?:tubemq|inlong)' if tlp == 'inlong'
tlpQE = '(?:hadoop/)?ozone' if tlp == 'ozone'
if h =~ %r{^(https?)://(?:(archive|www)\.)?apache\.org/dist/(?:incubator/)?
WE "HTTPS! #{h}" unless $1 == 'https'
return $2 || '', $3, $4
elsif h =~ %r{^(https?)://(downloads)\.apache\.org//?(?:incubator/)?
WE "HTTPS! #{h}" unless $1 == 'https'
return $2, $3, $4
elsif h =~ %r{^(https?)://repo1?\.(maven)(?:\.apache)?\.org/maven2/org/apache/
WE "HTTPS! #{h}" unless $1 == 'https'
W "Unexpected hash location #{h} for #{tlp}" unless ($vercheck[$3][0] rescue '') == 'maven'
return $2, $3, $4
else
if h =~ %r{-bin-}
W "Unexpected bin hash location #{h} for #{tlp}"
else
E "Unexpected hash location #{h} for #{tlp}"
end
nil
end
end