aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2011-11-15 18:06:26 -0600
committerJack Nagel2011-11-15 18:06:26 -0600
commitebfa4d5dc0a0ea1e6a719a6f6c2c9ec38088b473 (patch)
tree494e0f08c4469341427ea8263287875bdfbabb21 /Library
parentf2b43831f5e6852b30b1bb03a69dfe38c5b66d18 (diff)
downloadbrew-ebfa4d5dc0a0ea1e6a719a6f6c2c9ec38088b473.tar.bz2
audit: don't check duplicate URLs
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/cmd/audit.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 2f3ffbc0b..035421081 100755
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -181,6 +181,7 @@ def audit_formula_urls f
end
urls = [(f.url rescue nil), (f.head rescue nil)].reject {|p| p.nil?}
+ urls.uniq! # head-only formulae result in duplicate entries
f.mirrors.each do |m|
mirror = m.values_at :url