aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2014-03-30 18:00:00 -0500
committerJack Nagel2014-03-30 18:00:00 -0500
commit94f324d778e672539116e2a89273398e91eaa7d2 (patch)
tree5d6fc44813750896518426ea3f71253df9beb545 /Library/Homebrew/cmd
parent7584b2ca2b0f8da097a8591ca66bc3b653f3b3cf (diff)
downloadbrew-94f324d778e672539116e2a89273398e91eaa7d2.tar.bz2
Audit gnome URLs, prefer download.gnome.org
Diffstat (limited to 'Library/Homebrew/cmd')
-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