Audit gnome URLs, prefer download.gnome.org

This commit is contained in:
Jack Nagel 2014-03-30 18:00:00 -05:00
parent 7584b2ca2b
commit 94f324d778

View File

@ -216,6 +216,10 @@ class FormulaAuditor
# 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.concat(@specs.map(&:mirrors).flatten)
urls.grep(%r[^(https?|ftp)://ftp\.gnome]) do |u|
problem %{download.gnome.org is preferred for GNOME software (url is #{u}).}
end
# Check SourceForge urls # Check SourceForge urls
urls.each do |p| urls.each do |p|
# Skip if the URL looks like a SVN repo # Skip if the URL looks like a SVN repo