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>
This commit is contained in:
parent
85b17ecb4e
commit
8848857cea
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user