diff options
| author | Jack Nagel | 2011-10-15 00:39:05 -0500 |
|---|---|---|
| committer | Jack Nagel | 2011-10-15 00:39:05 -0500 |
| commit | 8848857cead43e54a0d2fde85d902096160d95bb (patch) | |
| tree | 4e60ef5dd7537b59966a2b9010d4b1a99aa4813c | |
| parent | 85b17ecb4ebeb0100bb367e4696878cc7fe2d7ec (diff) | |
| download | brew-8848857cead43e54a0d2fde85d902096160d95bb.tar.bz2 | |
audit: check mirror URLs
This will actually throw some possibly unwanted warnings, e.g. whining
about using mirrors.kernel.org for Debian software; we might only want
that warning for the default URL.
Perhaps mirrors deserve their own audit_formula_mirrors, but rather than
duplicate code, let's just check them against the standard criteria for
now.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
| -rwxr-xr-x | Library/Homebrew/cmd/audit.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index fce3d869e..1a57ab80a 100755 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -178,6 +178,11 @@ def audit_formula_urls f urls = [(f.url rescue nil), (f.head rescue nil)].reject {|p| p.nil?} + f.mirrors.each do |m| + mirror = m.values_at :url + urls << (mirror.to_s rescue nil) + end + # Check SourceForge urls urls.each do |p| # Is it a filedownload (instead of svnroot) |
