From 346a97384819545f05891c6103950988e71829a1 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 12 Sep 2011 15:26:09 -0500 Subject: [PATCH] audit: check GNU urls We now prefer "ftpmirror.gnu.org" over the main FTP site. Signed-off-by: Jack Nagel --- Library/Homebrew/cmd/audit.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 865cadf7c3..30219a9eaf 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