parent
5c414dca5b
commit
5c8ceaa458
@ -321,8 +321,15 @@ class FormulaAuditor
|
|||||||
problem "\"http://ftpmirror.gnu.org\" is preferred for GNU software (url is #{u})."
|
problem "\"http://ftpmirror.gnu.org\" is preferred for GNU software (url is #{u})."
|
||||||
end
|
end
|
||||||
|
|
||||||
|
mirrors = @specs.map(&:mirrors).flatten
|
||||||
|
dupes = urls & mirrors
|
||||||
|
|
||||||
|
dupes.each do |dupe|
|
||||||
|
problem "URL should not be duplicated as a mirror: #{dupe}"
|
||||||
|
end
|
||||||
|
|
||||||
# the rest of the checks apply to mirrors as well.
|
# the rest of the checks apply to mirrors as well.
|
||||||
urls.concat(@specs.map(&:mirrors).flatten)
|
urls += mirrors
|
||||||
|
|
||||||
# Check a variety of SSL/TLS links that don't consistently auto-redirect
|
# Check a variety of SSL/TLS links that don't consistently auto-redirect
|
||||||
# or are overly common errors that need to be reduced & fixed over time.
|
# or are overly common errors that need to be reduced & fixed over time.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user