aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-03-30 18:00:00 -0500
committerJack Nagel2014-03-30 18:00:00 -0500
commit557ef8df05a8ea28ed903f08b2009ebc0e218f5a (patch)
treeab2e982d7587499157a3f2d1cef58b466f6d748b /Library
parentca048e8001dab30263436670c630506f777a1fed (diff)
downloadhomebrew-557ef8df05a8ea28ed903f08b2009ebc0e218f5a.tar.bz2
Audit gnome URLs, prefer download.gnome.org
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index ed97b01a8..db56663a4 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -216,6 +216,10 @@ class FormulaAuditor
# the rest of the checks apply to mirrors as well
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
urls.each do |p|
# Skip if the URL looks like a SVN repo