aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2011-09-12 15:26:09 -0500
committerJack Nagel2011-09-12 15:43:02 -0500
commit346a97384819545f05891c6103950988e71829a1 (patch)
tree6ae407ae1e87f0b0eff349c2a6cca850de030884 /Library
parentadb85c7f388bd79fa3fc7de7b975d953d80a5a6f (diff)
downloadbrew-346a97384819545f05891c6103950988e71829a1.tar.bz2
audit: check GNU urls
We now prefer "ftpmirror.gnu.org" over the main FTP site. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/cmd/audit.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 865cadf7c..30219a9ea 100755
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -220,6 +220,13 @@ def audit_formula_urls f
end
end
+ # Check GNU urls
+ urls.each do |p|
+ if p =~ %r[ftp\.gnu\.org]
+ problems << " * ftpmirror.gnu.org is preferred for GNU software."
+ end
+ end
+
return problems
end